Visual Studio 2010 在解决方案加载时崩溃 [英] Visual Studio 2010 Crashing on Solution Load

查看:31
本文介绍了Visual Studio 2010 在解决方案加载时崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看过很多类似的问题,但我不认为我在重复.这是我的情况.我正在使用三种解决方案.A 工作正常,但是当我尝试加载 B 或 C 时,VS 2010 在加载解决方案后不久崩溃,特别是在我尝试从我的解决方案资源管理器中打开文件后.

I've seen a lot of similar questions, but I don't think I'm duplicating. Here's my situation. I have three solutions that I'm working with. A works fine, but when I try to load B or C, VS 2010 crashes shortly after loading the solution, particularly after I try to open a file form my solution explorer.

我尝试过的:

  1. 禁用所有加载项和宏可见工具 -> 选项 -> 加载项/宏安全,然后取消选中两个相关复选框

  1. Disabling all add-ins and macros vis tools -> options -> add-in/Macros Security then unchecking the two relevant check boxes

正在删除我的 .suo 文件.

Deleting my .suo file.

重新启动我的机器

以管理员身份运行 VS 2010

Running VS 2010 as Administrator

这是我的事件查看器的错误

Here's the error from my event viewer

错误的应用程序名称:devenv.exe,版本:10.0.30319.1,时间戳:0x4ba1fab3 错误模块名称:cslangsvc.dll,版本:10.0.30319.1,时间戳:0x4ba20c61 异常代码:0xc0000005 故障偏移:0x0024b651故障进程 ID:0x1408 故障申请开始时间:0x01cbddd78972584a 故障应用程序路径:c:\Program Files(x86)\Microsoft Visual Studio10.0\Common7\IDE\devenv.exe 错误模块路径:c:\Program Files(x86)\Microsoft Visual Studio10.0\VC#\VCSPackages\cslangsvc.dll 报告 ID:cd32c352-49ca-11e0-b3d8-0026b9c2aa7e

Faulting application name: devenv.exe, version: 10.0.30319.1, time stamp: 0x4ba1fab3 Faulting module name: cslangsvc.dll, version: 10.0.30319.1, time stamp: 0x4ba20c61 Exception code: 0xc0000005 Fault offset: 0x0024b651 Faulting process id: 0x1408 Faulting application start time: 0x01cbddd78972584a Faulting application path: c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe Faulting module path: c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC#\VCSPackages\cslangsvc.dll Report Id: cd32c352-49ca-11e0-b3d8-0026b9c2aa7e

编辑

这是一个包含两个项目的解决方案 -> 一个 win 表单项目和一个控制台项目.都在 C# 中

This is a solution with two projects -> a win forms project, and a console project. Both in C#

解决方案

事实证明,我的解决方案中有一些愚蠢的(愚蠢的?)代码让 VS 变得疯狂.代码永远不应该在那里;这只是我无缘无故写的东西.

It turns out there was some silly (stupid?) code in my solution that was making VS go crazy. The code should never really have been in there; it was just something I wrote playing around for no good reason.

在相关说明中,如果您想对不喜欢的人作恶,请将以下代码插入他们的解决方案中的某处,然后坐下来观看乐趣:

On a related note, if you ever want to be evil to someone you don't like, insert the following code into their solution somewhere, and sit back and watch the fun:

namespace System {
    public partial class Boolean { }
}

我将此代码放入第一个解决方案中,并在构建后看到它崩溃.我断定-umed 崩溃与我刚刚编写的代码无关,并继续将其放入我的第二个解决方案中,看看是否可以在没有扩展方法的情况下扩展布尔值,然后对 VS 仍然崩溃感到愤怒.我从未想过该代码可能会导致 VS 崩溃.

I put this code into the first solution, and watched it crash after building. I ass-umed the crash was unlreated to the code I had just written and proceeded to put it into my second solution to see if it was possible to extend Boolean without extension methods, then got angry that VS was still crashing. That code could be capable of crashing VS never crossed my mind.

推荐答案

尝试通过工具 -> 扩展管理器禁用所有扩展.我的扩展程序仅在某些项目中崩溃了 Visual Studio.

Try disabling all extensions via tools -> extension manager. I've had extensions crash visual studio only in certain projects.

或者尝试在安全模式下运行 VS:devenv.exe/SafeMode

Alternatively try running VS in safemode: devenv.exe /SafeMode

这篇关于Visual Studio 2010 在解决方案加载时崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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