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

Description Kent Green [MSFT] 2014-11-25 16:36:55 UTC
---Overview---
From this desk case:
https://xamarin.desk.com/agent/case/105643

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: 
http://superuser.com/questions/648164/why-does-my-appdata-local-temp-folder-have-almost-100gb-in-it-if-this-data-is

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