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.
Description of Issue: The project used in the screencast is SimpleWidgit . Basically XML files render fine in the X.S Designer, but not in Visual Studio.
Version Information from X.S:
Version 4.0.3 (build 13)
Installation UUID: c468f8a8-6fe3-4b9d-bcab-5bf11629c69a
Microsoft .NET 4.0.30319.18033
Version: 4.6.5 (Business Edition)
Android SDK: C:\Users\Pierce Boggan\AppData\Local\Android\android-sdk
Supported Android versions:
2.1 (API level 7)
2.2 (API level 8)
2.3 (API level 10)
3.1 (API level 12)
4.0 (API level 14)
4.0.3 (API level 15)
Java SDK: C:\Program Files\Java\jdk1.6.0_39
Release ID: 400030013
Build date: 2013-03-21 15:53:00Z
Xamarin addins: 906a1edff23bcfd0ab7518463620a8ee506eaea2
Version Information from VS:
Microsoft Visual Studio Premium 2012
Version 11.0.50727.1 RTMREL
Microsoft .NET Framework
Installed Version: Premium
Team Explorer for Visual Studio 2012 04941-004-0043007-02094
Microsoft Team Explorer for Visual Studio 2012
Visual Basic 2012 04941-004-0043007-02094
Microsoft Visual Basic 2012
Visual C# 2012 04941-004-0043007-02094
Microsoft Visual C# 2012
Visual C++ 2012 04941-004-0043007-02094
Microsoft Visual C++ 2012
Visual F# 2012 04941-004-0043007-02094
Microsoft Visual F# 2012
Visual Studio 2012 Code Analysis Spell Checker 04941-004-0043007-02094
Microsoft® Visual Studio® 2012 Code Analysis Spell Checker
Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.
The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.
NuGet Package Manager 2.0.30625.9003
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
PreEmptive Analytics Visualizer 1.0
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
Xamarin.Android 4.6.05003 (78d88c58)
Visual Studio plugin to enable development for Xamarin.Android.
Xamarin.iOS 1.1.200 (7d63692c)
Visual Studio extension to enable development for Xamarin.iOS
The sample is wrong, the layout files must have a ".axml" extension.
Hi Lluis, this is not enough to solve the problem.
You can contact Pierce Boggan at firstname.lastname@example.org, here is his answer to my report :
Just wanted to update you with the status of the issue you reported. After some digging around, I managed to figure out that the issue is a bug with the way the Android plugin in Visual Studio handles the XML file. In Xamarin Studio, the file renders perfectly (the XML, without renaming) in the designer, however, in Visual Studio there are issues and designer isn't even an option. I've filed this a Bug #12331. Feel free to add yourself to the CC List on the right-hand side of the issue to receive updates whenever there is activity on the issue itself (whether a comment, resolution, patch, etc.).
Again, sorry for the issue but glad we could identify the issue! Have a great day!
After changing the extension of the layout files to .axml, right click on widget_message.axml and click on "Open With". This will show a dialog with options. Is "Android Designer" in the list of options?
Also, please try the following: open the SimpleProject.csproj file and look for widget_word. You'll find an entry like this:
Now remove the SubType element, so it looks like this:
<AndroidResource Include="Resources\layout\widget_word.axml" />
Save the changes and reopen the project. Let's see if that makes any difference.
after renaming to "axml" the right-clic "open with" is showing the 'android designer' option. A double-click on the file does nothing but the designer can be opened using this trick.
I checked the csproj and here is what I have :
It not seems to be good ("none include").
I changed it to
<AndroidResource Include="Resources\layout\widget_message.axml" />
double-clicking each axml is working correctly and load the designer.
So it is ok, you found the problem, thanks cause I learnt something and i now where to look for if this kind of problem come back one day in any project !
Thanks again Lluis
(perhaps the sample should be corrected to avoid future bug reports from users).
That problem with the SubType element has been fixed. The fix will be included in upcoming releases.