System.NullReferenceException occurs in xaml designer
I've created a C++ UWP Windows 10 app using Visual Studio 2015. However, I'm not able to visualize any xaml in the designer because I'm always getting a System.NullReferenceException error. How can I fix this? That's very odd but I solved following these steps: Close any instance of Visual Studio Open Visual studio and create a new C# UWP empty project (name it as you like, do not matter) Run the "useless" created project then close it as Visual Studio Open again your previous C++ UWP project In my case everything started working! Switching solution platform to x86 worked for me. I'm