Bug 24820 - Make temp files for Xamarin.Android that are automatically cleaned
Summary: Make temp files for Xamarin.Android that are automatically cleaned
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 4.16.0
Hardware: PC Windows
: --- enhancement
Target Milestone: 5.1
Assignee: dean.ellis
Depends on:
Reported: 2014-11-25 16:36 UTC by Kent Green [MSFT]
Modified: 2015-03-12 17:53 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 Kent Green [MSFT] 2014-11-25 16:36:55 UTC
From this desk case:

Customer reported that Xamarin.Android generates temp files that are never deleted. Chrisntr noted that the issue is that while the Windows temp file is generally a good place to dump stuff, it isn't automatically cleaned out by Windows: 

Hence, he asked that I file an enhancement request to improve how this is handled in Xamarin.Android.
Comment 1 dean.ellis 2014-12-01 08:40:27 UTC
Turns out this was just a path separator issue. The CreateTemporaryDirectory task was not including an ending path separator. So when the task appended __library_projects__ it ended up creating a whole new directory which was not cleaned up. 

Fixed in monodroid/master/9146189d