visual-studioxamlvisual-studio-2012xaml-designer

Visual Studio 2012 Not Recognizing Xaml Files, Design View Broken


Design View for Xaml on Visual Studio Professional RC 2012 used to work for me. But suddenly stopped for no reason I can figure.

Visual Studio 2012 RC designer does not recognize xaml for a Windows Metro app looks identical to my case but my problem suggests the issue is more general than his title.

Reinstalling fixed his issue but does not shed light on this frustrating problem.

Can someone help?


EDIT - Reinstalling nearly resolved the issue. Design view works, toolbox is populated, auto complete is back, XAML is available under tool-> options->text... and control element properties can be viewed.

Everything is normal except for the passing strange fact that XAML Code View no longer does syntax highlighting. This is not suprising since unlike what http://msdn.microsoft.com/en-us/library/bb907395(v=vs.90).aspx expects, there are no XAML prefixed items in the displayed items.

Perhaps relatively minor in the scheme of things but also a very annoying loss.


Solution

  • Suggestion 4 in this link worked for me: devenv /resetuserdata in Command Prompt.

    So at least in my case, re-installing and then the above command cleared all issues. It is possible that resetting user data could have made it unnecessary to re-install but I can't know that now.

    I still can't say what caused this but it seems a pretty long tail issue that occurs sporadically and looks to have precursors in older versions.