[msbuild] Post-build msbuild targets firing before IPA creation #7139
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
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)
The text was updated successfully, but these errors were encountered: