Bug 11568 - NeedsBuilding check inconsistent with xbuild/msbuild
Summary: NeedsBuilding check inconsistent with xbuild/msbuild
Status: RESOLVED ANSWERED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: unspecified
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2013-04-03 20:32 UTC by Mikayla Hutchinson [MSFT]
Modified: 2016-11-03 08:38 UTC (History)
2 users (show)

Tags:
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:
Status:
RESOLVED ANSWERED

Description Mikayla Hutchinson [MSFT] 2013-04-03 20:32:48 UTC
The XS NeedsBuilding check is inconsistent with xbuild. It considers a project to need rebuilding if it's older than a referenced system assembly. However, xbuild will skip the build in this case. (Not sure what msbuild does).

This is a problem when using the xbuild build engine. MD will always consider the project to need building, even after it has been "built" with xbuild.
Comment 1 Mikayla Hutchinson [MSFT] 2013-04-04 13:35:31 UTC
Our NeedsBuilding check can never be guaranteed to be correct when using xbuild. IMO when building projects using the xbuild engine we should skip the NeedsBuilding check, and simply invoke xbuild and trust it to do the dependency analysis.

Maybe we can keep NeedsBuilding in a limited form for the "you should build this before debugging it" warning.
Comment 2 Marius Ungureanu 2016-11-03 08:38:19 UTC
SetNeedsBuilding is now obsolete, and most of the functionality has been removed. The only piece that uses it is the Gtk# designer. Marking as answered.