How do you fix schema / namespace error in Visual Studio 2010? (WPF / XAML) -
i'm not sure why, lately visual studio cannot seem find schema used in xaml on root window.
this error message i'm getting:
message 1 not find schema information element 'http://schemas.microsoft.com/winfx/2006/xaml/presentation:window'.
the error results in intellisense not working. however, project still compiles , runs expected. problem same in every project open. starting on new project gives me following xaml:
<window x:class="wpfapplication2.mainwindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" title="mainwindow" height="350" width="525"> <grid> </grid> </window> but i'm getting same error.
i've tried, without luck, of following:
- reinstalling visual studio 2010
- reinstalling .net
- removing visual studio directory (\users\[user]\documents\visual studio 2010).
what do fix it?
this happening me because had configured visual studio open xaml files in xml (text) editor.
to fix problem, right click on xaml file in solution explorer, chose "open with", select "automatic editor selector" , click "set default".
if want open xaml documents in full xaml view, go tools -> options -> text editor -> xaml -> miscellaneous , check "always open documents in full xaml view".
Comments
Post a Comment