I\'m trying to get a search contract working on my Win 8 app but after adding a search contract to my project I get the following namespace error:
LayoutAwarePag
I removed the reference to the Bing Maps SDK and set the Platform Target back to Any CPU and it solved the problem for me.
Please close all tabs in VS if opened.
Then Click Build-> clean solution
next click build->rebuild solution
Now open the xaml file.
Hope it will work
You must add a reference to the WinRTXamlToolkit: From VS2012 Express
I got a long list of similar bugs when compiling an UWP app. Hidden among them however, were several genuine compile errors. When I fixed the genuine errors, the missing references also disappeared.
So, fix any other compile errors first, and see if these "missing in namespace" errors then disappear.
EDIT: My colleague also had this bug in VS 2017. Cleaning the solution via the Build menu didn't work. Right-clicking on the projects in the Solution Explorer and cleaning each one, then re-building, worked.
EDIT2:
Just had this problem again. 22 "missing in namespace" errors.
I had deleted a button handler from a ViewModel, but forgotten to delete the button from the XAML code. When I fixed this genuine error, the 22 "missing in namespace" errors also disappeared.
I just unloaded the project and reloaded it in VS'2012 and it started working. No deleting anything necessary.
I also have the same issue in Visual Studio 2012 while adding new basic page in Xaml.I just run my application and the error removed automatically.