XAML设计器使未将对象引用设置为对象的实例而崩溃 [英] XAML Designer crashes Object reference not set to an instance of an object

查看:431
本文介绍了XAML设计器使未将对象引用设置为对象的实例而崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio 2015社区.

因此,我创建了一个空白的UW应用程序(C ++),我想开始四处看看,因为这是我第一次使用XAML设计器.

但是,在不进行任何代码更改的情况下,设计人员将不会加载.设计器返回未处理的异常(System.NullReferenceException)-未将对象引用设置为对象的实例.

这真的很奇怪,因为该应用程序可以编译并运行良好.设计器为我提供了一个修复程序(从设计视图中排除项目代码可以提高XAML设计器的稳定性....",但这不能解决问题.

任何人都知道那里出了什么问题吗? 谢谢!

解决方案

您可以尝试创建UWP C#项目和F5吗?之后,请尝试再次打开C ++ XAML设计器,它应该可以修复设计器.

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!

解决方案

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.

这篇关于XAML设计器使未将对象引用设置为对象的实例而崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆