Bug 25588 - Renaming an Android layout file doesn't work properly
Summary: Renaming an Android layout file doesn't work properly
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android Designer ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2014-12-23 07:45 UTC by Anubhav Ranjan
Modified: 2017-07-11 17:56 UTC (History)
9 users (show)

Tags: vs ac
Is this bug a regression?: ---
Last known good build:

Version Information and Logs (434.34 KB, application/octet-stream)
2014-12-23 07:45 UTC, Anubhav Ranjan

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 for Bug 25588 on Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.
Related Links:

Description Anubhav Ranjan 2014-12-23 07:45:48 UTC
Created attachment 9172 [details]
Version Information and Logs

One of our customer is facing the following issue.

I just noticed renaming a layout file in Xamarin Android (Visual Studio) doesn't work properly. Changes you make to a renamed file are saved to the old file, even though it seems you're editing the new file. After closing the solution and re-opening the solution I see the old .axml-file with my changes and the new file contains the code from when I renamed the file.

Steps to reproduce:
1. Create a new Android-project in Visual Studio
2. Add a layout file and inflate it in some Activity
3. Rename the layout file and change some of the layout.
4. Reload the solution and notice the old layout file contains the changes and the new file doesn't.
Comment 2 Sunil Kumar 2014-12-23 10:01:40 UTC
I have tried to reproduce this issue and getting the same behavior. I followed the steps mentioned in bug description to reproduce this issue.

Screencast: http://www.screencast.com/t/8pqXbluvk
IDE log: https://gist.github.com/sunil360/ca593402fc8b8e19c80f

Environment Info: 
Microsoft Visual Studio Professional 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Version 4.5.50938

Xamarin (5f8a37f)
Xamarin.Android (49a04b966feb40dfdba49d57ba16249b66d606a6)
Xamarin.iOS (5d3de42232dc41c92a736286e33d9b3900a50dd7)
Comment 3 Jose Gallardo 2016-12-27 22:12:41 UTC
Moving to the right component for visibility from the right team.