VS2012:属性页未打开:未将对象引用设置为对象的实例 [英] VS2012: Property Pages isn't opening: Object reference not set to an instance of an object

查看:132
本文介绍了VS2012:属性页未打开:未将对象引用设置为对象的实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Visual Studio Premium 2012,版本 11.0.50727.1 RTMREL,Windows 7 Enterprise (SP1).

I'm on Visual Studio Premium 2012, Version 11.0.50727.1 RTMREL, Windows 7 Enterprise (SP1).

当我右键单击解决方案"并单击属性"时,会出现一个弹出窗口,显示空引用异常(未将对象引用设置为对象的实例).

When I right click on the Solution, and click Properties, I get a popup window showing the the null reference exception (Object reference not set to an instance of an object).

当我在 2010 年尝试相同时,它工作正常,打开正常的解决方案属性页面,允许我设置启动顺序等.

When I try the same in 2010, it works fine, opening up the normal solution properties pages, allowing me to set the startup order etc.

此外,在 2012 年,View -> Property Pages 给出了相同的结果.

Also, in 2012, View -> Property Pages, gives the same result.

请告知如何解决这个问题,这是一个已知的错误吗?

Please advise how to solve this, is this a known bug?

更新 1: 尝试运行 devenv/resetsettings 以及 devenv/safemode 但问题仍然存在.也在新的解决方案上试了一下,问题依旧.

UPDATE 1: Tried running devenv /resetsettings as well as devenv /safemode but the problem persists. Also tried it on a new solution, and the problem persists.

更新 2: 似乎禁用任何扩展,然后重试,可以解决问题.重新启用扩展程序不会恢复错误.

UPDATE 2: Seems that disabling any extension, and trying again, sorts out the issue. Re-enabling extension doesn't bring the bug back.

更新 3:如果您仍然遇到此问题,请在此处投票:https://connect.microsoft.com/VisualStudio/feedback/details/763961/cannot-open-property-pages-for-solution

UPDATE 3: Go vote here if you're still having this issue: https://connect.microsoft.com/VisualStudio/feedback/details/763961/cannot-open-property-pages-for-solution

推荐答案

这也发生在我身上.如果您安装了 ReSharper,请尝试禁用它(工具 -> 选项 -> ReSharper -> 常规 -> 暂停并重新启动 VS2012.如果您没有安装 ReSharper,恐怕我不知道.

This happened to me as well. If you have ReSharper installed, try disabling it (Tools -> Options -> ReSharper -> General -> Suspend and restart VS2012. If you do not have ReSharper installed, I'm afraid I have no idea.

在这里看到一些评论并自己遇到了它之后,似乎禁用 Re-Sharper 并不总是能解决问题.但是,如果您禁用、重新启动、重新启用其他"附加组件,问题最终会暂时消失.下次打开 Visual Studio 时,您可能会在同一地点.

After seeing some comments here, and running into it myself, it appears that disabling Re-Sharper doesn't always fix the issue. However, if you disable, restart, re-enable 'other' add ons, the issue will eventually go away temporarily. The next time visual studio opens, you will likely be in the same spot.

这篇关于VS2012:属性页未打开:未将对象引用设置为对象的实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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