Search code examples
visual-studio-2015xaml-designer

XAML Designer crashes Object reference not set to an instance of an object


I'm using Visual Studio 2015 Community.

So, I created a blank UW App (C++) and I wanted to start looking around, because that's my first time using the XAML Designer.

However, with no changes to the code whatsoever, the designer won't load. The Designer returns an unhandled exception (System.NullReferenceException) - Object reference not set to an instance of an object.

This is really weird, as the app compiles and runs fine. The designer gives me a fix ("Excluding project code from running in the design view can improve the stability of the XAML designer...."), but this doesn't resolve the issue.

Anyone know whats the problem there? Thanks!


Solution

  • Can you try creating a UWP C# project and F5? After this try opening your C++ XAML Designer again and it should fix the designer.