Bug 959 - Removing a file in the solution should not require manual cleaning/rebuilding
Summary: Removing a file in the solution should not require manual cleaning/rebuilding
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: Trunk
Hardware: PC Mac OS
: Low enhancement
Target Milestone: ---
Assignee: Lluis Sanchez
Depends on:
Reported: 2011-09-21 09:01 UTC by Alan McGovern
Modified: 2015-07-02 14:47 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 Alan McGovern 2011-09-21 09:01:54 UTC
If i have an iPhone project and I remove (for example) the main splash image, this modification to the solution is not reflected in the simulator when i build the project again. I have to explictly clean the solution and build it, or choose the 'Rebuild' option before the stale file vanishes and my app starts up with no splash image.

mhutch pointed out that this is already handled by xbuild so when MonoDevelop switches to xbuild as the main build engine, we will automatically gain this ability to purge stale files. This is just a tracker bug for the issue.
Comment 1 Mikayla Hutchinson [MSFT] 2011-11-16 09:39:43 UTC
I'm not sure xbuild supports incremental clean, but MSBuild does. During each build, it lists all the files that would be created (even if they're skipped due to incremental build). At the end of the build, it compares that to the list from the previous build and removes any stale files.
Comment 2 Lluis Sanchez 2015-07-02 14:47:34 UTC
Closing since we are already using msbuild for iOS.