Bug 11865 - Switching files deletes axml file contents in Visual Studio 2012
Summary: Switching files deletes axml file contents in Visual Studio 2012
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: 3.0
Hardware: PC Windows
: Normal major
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-04-19 13:40 UTC by pokerstud91
Modified: 2015-07-16 13:44 UTC (History)
5 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:
VERIFIED FIXED

Description pokerstud91 2013-04-19 13:40:52 UTC
When I open a axml layout file in Visual Studio 2012 I can make changes in the 'source' view. Then if I switch tabs to another file and come back, usually the recent changes I have made are erased. The contents of the file go back to either the original contents (just after you create the axml file with just a LinearLayout) or to what was previously saved. 

To correct this, I can simply 'undo' and then the file is back to what is was before I switched tabs (ie. the correct contents of the file). So, its not a huge issue but it's annoying to have to keep undoing whenever I switch tabs to other files.

This has occurred between several versions of Mono Android.

Steps to reproduce.
1) Open Visual Studio and create or open a axml Android file.
2) Make some changes to the file and then open another file.
3) Go back to the axml file and the contents have changed (BUG) 
4) Click 'undo' and the contents will go back to the correct file.

Windows 8, Visual Studio 2012
Comment 1 Parmendra Kumar 2015-01-14 09:05:47 UTC
I have checked this issue but unable to reproduce this issue. Could you please let us know if you getting same behavior on latest build, Also provide us IDE Log file.
You can get IDE Log via: Help->Zip Xamarin Logs
Comment 2 Abhishek 2015-07-16 13:44:07 UTC
I have checked this issue with latest stable build XVS 3.11.666. Now this issue is working fine.Here is the screencast for the same: http://www.screencast.com/t/tH7RGWyr8

Hence closing this issue.