xamarin intellisense not working in visual studio

2019-01-29 12:46发布

I have been trying to use Xamarin with Visual Studion 2015 on Windows 10 platform. I am not able to use Intellisense for AXML, which is quite frustrating . Any solutions ???

2条回答
家丑人穷心不美
2楼-- · 2019-01-29 13:28

Here what worked actually.....thanks to BOB! (not really)

Do both add the two schema files to your project and open with XML Text editor and not the default Android Designer......

and go to hell bob.

from solution Cannot get Xamarin Xaml Intellisense working in VS 2015

The reason why Intellisense is not appear in editor is that Xamarin XAML is not opened as file with content type xaml but file with content type xml. To open xamarin XAML file as file with content type xaml simply in solution explorer right click the xaml file and select Open With... In popup select "XAML Designer with Encoding" and click OK.

You need to add the xsd-schemas for android layout files to Visual Studio.

Copy android-layout-xml.xsd and schemas.android.com.apk.res.android.xsd from C:\Program Files (x86)\Xamarin Studio\AddIns\MonoDevelop.MonoDroid\schemas to C:\Program Files (x86)\Microsoft Visual Studio 14.0\Xml\Schemas

You can then "Add" these schemas inside Visual Studio via the XML -> Schemas -> Add dialog.

查看更多
\"骚年 ilove
3楼-- · 2019-01-29 13:34

You need to add the xsd-schemas for android layout files to Visual Studio.

Copy android-layout-xml.xsd and schemas.android.com.apk.res.android.xsd from C:\Program Files (x86)\Xamarin Studio\AddIns\MonoDevelop.MonoDroid\schemas to C:\Program Files (x86)\Microsoft Visual Studio 14.0\Xml\Schemas

You can then "Add" these schemas inside Visual Studio via the XML -> Schemas -> Add dialog.

It's described in the Xamarin Knowledgebase.

查看更多
登录 后发表回答