Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[msbuild] Post-build msbuild targets firing before IPA creation #7139

Open
vsfeedback opened this issue Sep 30, 2019 · 0 comments
Open

[msbuild] Post-build msbuild targets firing before IPA creation #7139

vsfeedback opened this issue Sep 30, 2019 · 0 comments
Labels
bug If an issue is a bug or a pull request a bug fix good first issue This is a good first issue for someone to start working with our code help wanted This is an issue or pull request where we request help from the community to fix or complete msbuild Issues affecting our msbuild tasks/targets
Milestone

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


(obviously it's xamarin-iOS-project with some mac paired)

My post-build event command line is something like
copy c:\MyProj...\bin\MyProj.ipa f:\MyProj.ipa

variant 1:
no ipa file existing (because bin-folder deleted, after clean, ...)
I get after build error msg "File does not exist"
and the ipa-file is not created

variant 2:
old ipa file is existing
no error msg after build, the copy command is executed before creating the new ipa
in C:...\bin\ I see the new ipa file but in F:\ I see the old file.

I would expect that "post-build event command line" is called really after Build completed.
(With VS2017 it did work)

Regards, Holger Gothan.


Original Comments

Visual Studio Feedback System on 9/12/2019, 02:49 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Emanuel Fernandez Dell'Oca [MSFT] on 9/17/2019, 11:49 AM:

Hi @Holger Gothan,
Could you attach a Diagnostic build output after reproducing this problem (it’d be great if you could do so for each variant you mentioned)? If you’re building from inside Visual Studio you can change the build output verbosity from Tools -> Options -> Projects and Solutions -> Build and Run -> MSBuild project build output verbosity

Thanks for reporting!

Markus Friedrich on 9/18/2019, 01:52 AM:

(private comment, text removed)

Emanuel Fernandez Dell'Oca [MSFT] on 9/27/2019, 10:47 AM:

Hi,
Sorry for the late response and thanks for the attached build outputs. We’ve been able to reproduce this problem, and it seems to be an issue on the core targets of the Xamarin.iOS SDK, so I’ll assign this ticket to that team so they can furtherly investigate it.

On the meantime, I think you can add a target that runs after the build finishes as a workaround, like the following:
<Target Name="_CopyLocalIpa" AfterTargets="Build">

<Exec Command="copy command used on the PostBuildEvent" />

</Target>


You’ll need to add that target in your csproj file right before the **</Project>** closing tag.

Thanks!

Visual Studio Feedback System on 9/27/2019, 10:49 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Holger Gothan on 9/30/2019, 08:53 AM:

the is a good workaround. thx


Original Solutions

(no solutions)

@chamons chamons changed the title VS2019, 16.2.5, post-build event command line is executed before creating ipa file [msbuild] Post-build msbuild targets firing before IPA creation Sep 30, 2019
@chamons chamons added bug If an issue is a bug or a pull request a bug fix help wanted This is an issue or pull request where we request help from the community to fix or complete msbuild Issues affecting our msbuild tasks/targets labels Sep 30, 2019
@chamons chamons added this to the Future milestone Sep 30, 2019
@rolfbjarne rolfbjarne added the good first issue This is a good first issue for someone to start working with our code label Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug If an issue is a bug or a pull request a bug fix good first issue This is a good first issue for someone to start working with our code help wanted This is an issue or pull request where we request help from the community to fix or complete msbuild Issues affecting our msbuild tasks/targets
Projects
None yet
Development

No branches or pull requests

3 participants