xamarin intellisense not working in visual studio 2015 on windows 10

后端 未结 2 1275
清歌不尽
清歌不尽 2020-12-22 11:41

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条回答
  • 2020-12-22 12:14

    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.

    0 讨论(0)
  • 2020-12-22 12:19

    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.

    0 讨论(0)
提交回复
热议问题