简体   繁体   English

当我运行单元测试时,Visual Studio崩溃了

[英]When I run a unit test visual studio crashed

When I am working with a VS 2008 Team System solution with a very large number of projects VS crashes on me all the time. 当我使用带有大量项目的VS 2008 Team System解决方案时,VS一直在我身上崩溃。

Strange thing is that the other developers don't have the same problem and it has only been a problem for me the last couple of days. 奇怪的是,其他开发人员没有相同的问题,而这对我来说只是最近几天的问题。 Don't know suddelny why i'm having this problem. 不知道suddelny为什么我遇到这个问题。

When i run a unit test it crashes and when i get rid of a bunch of projest from the solution and run the same unit test it's doesn't crash. 当我运行单元测试时,它会崩溃,而当我从解决方案中摆脱掉一堆烦恼并运行同一单元测试时,它不会崩溃。

It has nothing to do with add ins, VS settings, the machine spec and i already tried reinstalled VS. 它与插件,VS设置,机器规格无关,我已经尝试过重新安装VS。 It has something to do with VS running out of memory or something 这与VS内存不足或其他原因有关

Here are the steps i took so fare: Reinstalled VS then rebuilt the solution, deleted all VS files like the .user file and deleted all add ins. 这是我采取的措施:重新安装VS,然后重建解决方案,删除所有VS文件(如.user文件),并删除所有加载项。

I also increaed my virtual memory. 我还增加了虚拟内存。 My machine isn't running at 100% CPU or 100% RAM at the time and there is no usful messages in the event log. 我的机器当时没有以100%CPU或100%RAM运行,并且事件日志中没有有用的消息。

It crashes when i do anything really except opening and closing files, like running a unit test or going into debug mode 当我执行除打开和关闭文件以外的任何操作时,它会崩溃,例如运行单元测试或进入调试模式

any suggestions? 有什么建议么?

Your question doesn't have a lot of info - no error messages, no steps you take to get the crash, no steps you've taken to troubleshoot or what the outcome was, not even what you mean by "very large number of projects"... 您的问题没有很多信息-没有错误消息,没有采取任何措施来解决崩溃,没有采取任何步骤来进行故障排除,或者结果是什么,甚至甚至不是您所说的“大量项目” ” ...

So when you say "it has nothing to do with add ins, VS settings.." it's hard to accept that on faith, (or even help you at all honestly). 因此,当您说“与加载项,VS设置无关。”时,很难接受这一点(或者甚至完全可以帮助您)。

First thing I would do would be to reset all settings with Tools | 我要做的第一件事是使用“工具” |“重置”重置所有设置。 Import and Export settings..., then "Reset all settings". 导入和导出设置...,然后“重置所有设置”。 I would make sure all extensions are uninstalled (not just disabled. And I would delete my .suo file (been burned by that before). 我将确保所有扩展名均已卸载(而不仅仅是禁用。)并删除我的.suo文件(之前被该文件刻录过)。

If none of that works, a repair install or uninstall/reinstall would be next. 如果这些都不起作用,则接下来是修复安装或卸载/重新安装。 I'd also look at any new applications or service packs I've installed over the last few days. 我还将查看过去几天中安装的所有新应用程序或Service Pack。

When using VS 2008 with ReSharper (5.1, 6.0 or 6.1) I had the same problem. 将VS 2008与ReSharper(5.1、6.0或6.1)一起使用时,我遇到了同样的问题。 After uninstalling a seperate NUnit installation the crashes disappeared for me. 卸载单独的NUnit安装后,崩溃对我而言消失了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM