Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
With the latest update (mono for android 4.2.5, monodevelop 126.96.36.199) deploying a debug application to a device will delete all files from the application files folder [System.Environment.GetFolderPath (System.Environment.SpecialFolder.Personal)]
This wasn't happening with the previous version. My application under development stores preference data in that folder and the file would be gone after deploying a new version from MonoDevelop.
It acts like Monodevelop is ignoring the "Fast deployment" option, which is checked. It also removes the application icon from the home page screen during the deployment, which it didn't do before.
The target platform is a Samsung Galaxy Tab 2 but i don't think that is the problem.
This started after the above update, no code or settings were changed.
Could you please check if the checkbox "Preserve data/cache between application deploys" in "Mono for Android" configuration settings checked?
If it is checked, that is the expected behavior. In 4.2.5 we made some bugfixes in our code regarding deployment to android, which likely "fixed" some incomplete stuff. Whether it is fastdev or not and whether it should clean up app storage or not, should be different options.
With 4.2.5 or later, if you need to preserve the data used by applications, please turn on that checkbox.
I'm using MonoDevelop on a Mac and don't see the requested checkbox. Some websearches have referred to this setting on Visual Studio but I don't see the equivalent option on MonoDevelop.
Created attachment 2606 [details]
Please make sure you checked the correct configuration window. The attached screenshot shows where it should be seen. If you don't see it, try updating to 4.2.6 beta. If it still does not show up on 4.2.6 please attach your screenshot of the corresponding configuration dialog.
That was the right setting. I just hadn't found it at the bottom of the list.