Bug 13865 - Custom pre/post build events should use PostBuildEvent/PreBuildEvent
Summary: Custom pre/post build events should use PostBuildEvent/PreBuildEvent
Status: NEW
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: unspecified
Hardware: PC Mac OS
: Normal normal
Target Milestone: master
Assignee: Lluis Sanchez
: 14932 ()
Depends on:
Reported: 2013-08-08 14:00 UTC by Alan McGovern
Modified: 2013-12-05 11:57 UTC (History)
3 users (show)

Tags: msbuild
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 13865 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Alan McGovern 2013-08-08 14:00:05 UTC
While Visual Studio, MSBuild and Xbuild all support pre/post build actions defined in the csproj file, mdtool does not support this syntax and so it is not possible to have a single build which works with xbuild and mdtool.
Comment 2 Mikayla Hutchinson [MSFT] 2013-08-08 16:23:59 UTC
Not technically true, you can put both MSBuild and MD style pre/post build commands in the file. Though that will cause problems when MD switches to the xbuild engine and runs both commands...

We could probably head this problem off by migrating our pre/post build commands into the PreBuildEvent/PostBuildEvent properties that VS sets and MSBuild respects.
Comment 3 Jonathan Pryor 2013-09-23 17:01:44 UTC
*** Bug 14932 has been marked as a duplicate of this bug. ***