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 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.
Sometimes you can see your XML in the designer and it renders out a nice UI and you can save it to disk but it doesn't actually save... or it gets rewritten. I'm not sure. You will not be aware of this (except that your UI won't look right on the device) until you reboot and notice that the contents of your axml file are gone.
This is a really critical issue that has bit me three times in the last two weeks.
I have checked this issue and unable to reproduce it.
I tried following steps to reproduce it.
1.Create Xamarin Android application.
2.Did change in button text.
3.Save the changes.
4.Go to Main.axml(designer) page.
I observed that changes done in string.xml were reflecting in Main.axml(designer) page.
Could you please provide us Sample project.So that I can able to reproduce it.
A sample project will be hard to supply as once you exit and reload the problem disappears.
I THINK it may have something to do with creating the file, opening it in the designer and then possibly renaming the file before or after editing. I definitely saw the issue when I renamed a file before it was committed to source control.
Thank you. I hit this all the time when renaming axml files.
Sorry commented on the wrong bug report :-). We are working on it too though.
Fixed in master. Thanks for the report.
@Arpit to verify, create a new android application, open Main.axml, while the file tab is still there, rename Main.axml in the IDE to Main.axml2, do a change (e.g. change the button label), save the layout, make sure the change has been written to the right filename and that there is no dangling Main.axml file in the project folder.
*** Bug 24874 has been marked as a duplicate of this bug. ***
I have checked this issue with the help of comment 6 and with latest master build.
@Jeremie Laval, please review the screencast and let me know is it sufficient to close this issue?
Microsoft Visual Studio Professional 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Installed Version: Professional
Xamarin 5.0.286.0 (edfcb99)
Xamarin.Android 18.104.22.168 (9b342aafa9dade8c5215c1d4bd6e7402559de299)
Xamarin.iOS 22.214.171.124 (dfb682fa615491b012ed24198d2bdcd641e1874f)
Xamarin.iOS Unified Migration 1.0
@Arpit I would have put the 2 as Main2.axml to keep the extension but it seems to work too. Also make sure the filesystem has only one of the file (via the file explorer).