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
Status: RESOLVED FIXED
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
URL:
Depends on:
Blocks:
 
Reported: 2016-05-09 18:27 UTC by Adrian Alonso
Modified: 2016-05-09 18:38 UTC (History)
3 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 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 FIXED

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=192.168.1.1 /p:RemoveAppDir=true

or

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

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