Bug 18220 - Unable to open .xml files with the designer in Visual Studio
Summary: Unable to open .xml files with the designer in Visual Studio
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android Designer ()
Version: 1.10.x
Hardware: PC Windows
: High major
Target Milestone: 3.1
Assignee: Adrian Alonso
Depends on:
Reported: 2014-03-06 12:06 UTC by Peter Collins
Modified: 2014-06-10 04:10 UTC (History)
9 users (show)

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

.xml layout file (2.35 KB, text/xml)
2014-03-06 12:06 UTC, Peter Collins

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:

Description Peter Collins 2014-03-06 12:06:28 UTC
Created attachment 6246 [details]
.xml layout file

Visual Studio is only recognizing .axml files as valid layout files. The attached file opens correctly in the designer in Xamarin Studio on windows[1], but not in Visual Studio. The "Open With..." selector does not list the designer as a valid option for these files either [2]

[1] http://screencast.com/t/ki271lfS2wXy
[2] http://screencast.com/t/Kf5zgZGmJV

All VS
X.A. 4.12.02000 (eb70cdfd)
XIVS 1.10.45 (a45a407c)

=== Xamarin Studio ===

Version 4.2.3 (build 60)
Installation UUID: 0a846c8f-f4f7-44a8-9ab1-8dccd7e02db0
	Microsoft .NET 4.0.30319.34011
	GTK+ 2.24.22 theme: MS-Windows
	GTK# (

=== Xamarin.Android ===

Version: 4.12.2 (Enterprise Edition)
Android SDK: C:\Users\XamarinQA\AppData\Local\Android\android-sdk
	Supported Android versions:
		1.6   (API level 4)
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		3.2   (API level 13)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
Java SDK: C:\Program Files (x86)\Java\jdk1.6.0_31
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode)

=== Build Information ===

Release ID: 402030060
Build date: 2014-03-05 16:53:54Z
Xamarin addins: f8a9589b57c2bfab2ccd73c880e7ad81e3ecf044

=== Operating System ===

Windows 6.2.9200.0 (64-bit)
Comment 1 Peter Collins 2014-03-06 12:13:22 UTC
I am also seeing this in the latest from the XVS 1.12 branch:
XA (eb8e9b5)
XVS (53529de)
Comment 2 PJ 2014-03-10 10:32:36 UTC
At this point we're likely not going to get non-regression behavior changes into 1.12, moving to 1.1x
Comment 4 Daniel Cazzulino 2014-04-08 00:47:52 UTC
Note that just like for any other XML with namespaces, the Open Designer will NOT automatically open our designer. This works the same way as for a renamed .xsd to .xml.
Comment 5 Mohit Kheterpal 2014-06-09 14:30:29 UTC
Today I have tried to verify this issue with Xamarin 3.1.187 and now we are getting option to open attached xml file with Android designer as shown in screencast : http://screencast.com/t/QVI5eIleWW. 

But we are still not able to open this file in designer. Not sure about the expected result.

Please let me know if I have to verify something else?
Comment 6 Adrian Alonso 2014-06-09 15:10:34 UTC
What is the content of the XmlFile1.xml file? It should contain a valid layout content. If you for example rename the Main.axml to Main.xml, are you able to open it by selecting the "Android Designer" option in the "Open With..." dialog?

Otherwise please provide more details on the error or behavior you're getting when select the Open With Android designer option.
Comment 7 Tajinder Singh 2014-06-10 04:10:56 UTC
I have checked this issue with following build:

Microsoft Visual Studio Professional 2013
Version 12.0.21005.1 REL
Microsoft .NET Framework
Version 4.5.50938

Xamarin (c376d19d2984310ff50a6e741e3e3e9ce4f920a5)

I observed that when I add an android layout file in layout directory and rename that layout.axml file to layout.xml file. I am able to open that file on "android designier". I have also rename the Main.axml file to Main.xml and I am also able to open that file on "Android designer".

I have also check this issue whith ".xml" file when I add the ".xml" file and add a linear layout in it I am able to open that ".xml file" in "android designer".

Screencast: http://www.screencast.com/t/1zRo7cHqAy

This issue has been fixed. Hence, closing this issue.