Bug 7913 - MD executes common initial target of each project only once during entire xbuild build
Summary: MD executes common initial target of each project only once during entire xbu...
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: Trunk
Hardware: PC Linux
: Normal normal
Target Milestone: master
Assignee: Bugzilla
Depends on:
Reported: 2012-10-20 16:50 UTC by Antonius Riha
Modified: 2016-10-28 16:42 UTC (History)
2 users (show)

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 on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Antonius Riha 2012-10-20 16:50:02 UTC
Given the following setup:
Several xbuild proj files import a common targets file. The common targets file has an InitialTarget set. When building the entire solution in MD with the experimental xbuild option set, MD executes the build on each project separately. One would expect (since it is executed separately on each project) that the InitialTarget of the imported targets file is being called each time. However, it is only called once during the entire build.

When building on the cmd line and invoking xbuild on the sln, everything works as expected. When building on Windows with MSBuild (either on the cmd line, from within MD or VS2012) everything works as expected.

System info:
Ubuntu 12.04 x64
MD head of master
Comment 1 Jeffrey Stedfast 2016-10-28 16:42:05 UTC
Most likely this has been fixed with the move over to xbuild internally.