Bug 40977 - Build clean should also allow to remove the entire app dir
Summary: Build clean should also allow to remove the entire app dir
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.1.0 (C7)
Hardware: PC Mac OS
: --- enhancement
Target Milestone: ---
Assignee: Adrian Alonso
Depends on:
Reported: 2016-05-09 18:27 UTC by Adrian Alonso
Modified: 2016-05-09 18:38 UTC (History)
3 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 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 Adrian Alonso 2016-05-09 18:27:53 UTC
Specially useful for CI scenarios where the same app is built using different source locations in windows. Since the SessionId is being generated based on the windows source location, the mac server will end up with multiple build outputs in ~/Library/Caches/Xamarin/mtbs/builds/{AppName}/{SessionId}

The proposal solution is to add an additional "RemoveAppDir" property that deletes the entire app dir when the Clean target is executed. For example:

msbuild /t:Clean /p:ServerUser=foo /p:ServerAddress= /p:RemoveAppDir=true


msbuild /t:Rebuild /p:ServerUser=foo /p:ServerAddress= /p:RemoveAppDir=true
Comment 1 xamarin-release-manager 2016-05-09 18:38:08 UTC
Fixed in version (master)

Author: Adrian Alonso
Commit: 25a0ab4563e1e339e31a1b6fd2017df4b3c04d36 (xamarin/XamarinVS)