Visual Studio 2012 RC designer does not recognize xaml for a Windows Metro app

自古美人都是妖i 提交于 2019-12-11 17:44:10

问题


I recently installed the release candidate for Visual Studio 2012 and the release preview for Windows 8. I lost xaml intellisense and VS treats xaml as an XML document. Does anybody else have any ideas where to start to fix this problem?


回答1:


I simply re-installed Visual Studio 2012 RC. I'm not willing to attempt to reproduce the problem, but I believe this is what I did: Upgrade windows 7 professional with Visual Studio 2010 installed to Windows 8 professional, Installed Visual Studio 2012 RC, Installed Windows 8 SDK.

My symptoms include:

  1. Under tools, options, text editor, no xaml option.
  2. When I tried to view a xaml page via designer, the property window displayed everything as an XML document
  3. I could not view the designer in Visual Studio (I could in Blend), it would not let me and would show the xaml mark-up instead.
  4. No intellisense.

Re-installing didn't take too much time, maybe 20-30 minutes.




回答2:


Try right clicking on a XAML file in the Solution Explorer then choosing "Open with". In there choose "XAML UI Designer", hit "Set as Default" then hit "Ok". This should force VS to use the XAML Designer.



来源:https://stackoverflow.com/questions/10875565/visual-studio-2012-rc-designer-does-not-recognize-xaml-for-a-windows-metro-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!