Intellisense for AXML files doesn’t work in Visual Studio 2012
Most of the people who work with Xamarin’s Mono for Android in Visual Studio 2012 face a bug where Intellisense doesn’t work for AXML in source view.
One of the fix which worked for me is mentioned below.
- Launch Visual Studio 2012
- Open a solution with .AXML file in it
- Now XML main menu should be visible on top
- Open “Schemas…” menu
- Sort by “File Name” column and see if “android-layout-xml” and “schemas.android.com.apk.res.android” are there. If found, skip to step 13
- If not found, go to “Program Files” if 32-bit system or “Program Files (x86)” if 64-bit system.
- Then go to “\MSBuild\Novell” or “\MSBuild\Xamarin\Android”
- You should be able to see 2 files “android-layout-xml.xsd” and “schemas.android.com.apk.res.android.xsd”
- Copy these 2 files to “\Microsoft Visual Studio 11.0\Xml\Schemas”
- Again open the “Schemas…” menu as mentioned in steps 3&4
- Now click “Add…” button and add these 2 files which should be located as mentioned in step 7 & 8
- Now restart visual studio and the XML editor for design layout should work fine with Intellisense
- From step 5….
- If above steps don’t work, then close the Visual Studio 2012.
- Now open “Developer command prompt for VS2012” under Windows programs menu.
- Type “Devenv /ResetSettings” without quotes.
- Launch Visual Studio 2012 and see if Intellisense works.
- If still not working, better go to Xamarin forums and post there.
craig
April 20, 2013 - 7:57 PM
Thanks, this solved my issue
Gidon
April 22, 2013 - 1:48 PM
Thanks! This solved my problem
Kira
June 16, 2013 - 4:13 AM
Thanks a lot! Much appreciated! 😀
saeed
July 8, 2013 - 1:07 PM
The issue for xml files solved but not for axml files in mono android in VS
Tobias
October 31, 2013 - 4:36 PM
Thanks!
That was the exactly the solution of the problem for me!
Meysam Khoshbakht
March 30, 2014 - 12:10 PM
Thanks a lot. That’s great!
Pradeep kolla
September 10, 2014 - 4:45 PM
This problem is not solved in my machine, i type a command “Devenv /ResetSettings” in Developer command prompt for VS2012 but it shows like this. ” ‘devenv’ is not recognized as an internal or external command,
operable program or batch file. “
Kannan
September 18, 2014 - 9:53 AM
Open command prompt
Change directory to “C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\”
Type the command.
Note:
If you have 64-bit windows then replace “Program Files” with “Program Files (x86)”
Microsoft Visual Studio xx.x will vary based on your version of Visual Studio, hence search for the directory “Microsoft Visual Studio xx.x” whose “CommonX\IDE” sub-folder should have “devenv.exe”, where X is a number.