Visual Studio 2012 Not Recognizing Xaml Files, Design View Broken

后端 未结 5 1156
借酒劲吻你
借酒劲吻你 2020-12-18 09:38

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 11 No longer Re
相关标签:
5条回答
  • 2020-12-18 09:40

    Check the following:

    1. Tools -> Options
    2. Expand Text Editor -> XAML -> Miscellaneous
    3. Make sure that "Always open documents in full XAML view" is not checked

    Or perhaps the default program for opening .xaml files has changed:

    1. Right-click your .xaml file in Solution Explorer
    2. Click Open With...
    3. Select XAML UI Designer
    4. Click Set as Default button
    5. Click OK

    EDIT

    This does appear to be a known bug with an earlier version of VS11.

    0 讨论(0)
  • 2020-12-18 09:40

    I had the same issue in Vs 2012 express edition. Solved by running vs2012 command prompt and executing the code

    WDExpress/ResetSettings

    0 讨论(0)
  • 2020-12-18 09:52

    If anybody is interested. I had the failure: Could not open XAML and config files in Visual Studio 2012. Now I detected the cause: the Solutions suo files were corrupted after a System Crash. So I (was not sure) rebuilt the sln file in a different Folder and copied the sln and suo files (they are hidden!) to the old Folder. That definitely brought me back the lost functionality. Maybe it is only necessary to delete the old suo files. Juergen

    0 讨论(0)
  • 2020-12-18 10:01

    In Visual Studio 2013 I had a similar issue - I change my build action & from BundleResource to AndroidResource and I was able to get it working.

    enter image description here

    0 讨论(0)
  • 2020-12-18 10:03

    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.

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