简体   繁体   English

Visual Studio 2010运行糟糕 - 无法找到解决方案

[英]Visual Studio 2010 runs awful - can't find solution

I have a problem with my Visual Studio 2010 Professional - I'm working on a project at work, and everything in VS runs slow (maybe except IntelliSense). 我的Visual Studio 2010专业版有问题 - 我正在开发一个项目,VS中的所有内容都运行缓慢(可能除了IntelliSense)。 I know that start-up times usually are quite bad, and I can live with that. 我知道启动时间通常非常糟糕,我可以忍受。

But building a medium sized solution (7 projects, a few hundred files) takes from 3 to even 10 minutes... After building the solution VS says that it's ready, but I have to wait for the localhost to respond up to 5 minutes... That's up to 15 minutes in total! 但是构建一个中等大小的解决方案(7个项目,几百个文件)需要3到10分钟......在构建解决方案后,VS说已经准备就绪,但我必须等待localhost响应最多5分钟。 ..这总共长达15分钟! To keep things short: 保持简短:

  • after turning on everything I still have at least 1Gb of free RAM (4 total) and only 20-25% of processor usage 在打开所有内容之后,我仍然拥有至少1Gb的可用RAM(总共4个),并且只有20-25%的处理器使用率
  • I have uninstalled every plugin 我已经卸载了每个插件
  • The project builds and works fine on my teammate's computer 该项目在我的队友的计算机上构建并正常运行
  • The project works and builds even better when I work on a server using my computer and a virtual desktop 当我使用计算机和虚拟桌面在服务器上工作时,该项目的工作和构建会更好
  • My computer works just fine 我的电脑工作正常
  • I have just finished the painful re-installation of VS (after removing VS cleaning it's leftovers - or so I think) 我刚刚完成了VS的痛苦重新安装(在移除VS后清理它的剩余部分 - 或者我认为)

EDIT: After cleaning up my solution my build times are blazing fast! 编辑:清理我的解决方案后,我的构建时间非常快! :) Plus, I was able to find out that I have some kind of problem with my processor, which didn't show up in the process manager until now... Anyway, I think my problem has been solved somehow... THANK YOU! :)另外,我能够发现我的处理器存在某种问题,直到现在才出现在流程管理器中...无论如何,我认为我的问题已经解决了......谢谢您!

Try to run VS in safe mode 尝试以安全模式运行VS.

C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE\\devenv.exe /SafeMode C:\\ Program Files(x86)\\ Microsoft Visual Studio 10.0 \\ Common7 \\ IDE \\ devenv.exe / SafeMode

This switch prevents all third-party VSPackages from loading when Visual Studio starts, thus ensuring stable execution. 此开关可防止Visual Studio启动时加载所有第三方VSPackage,从而确保稳定执行。

Try Visual Studio Memory Wrapper by Jetbrains . 试试Jetbrains的Visual Studio Memory Wrapper It helped me with my Visual Studio 2010 performance a lot, but it may not work in your case. 它帮助我提高了Visual Studio 2010的性能,但它可能不适用于您的情况。

It's a fact that Visual Studio 2010 (devenv.exe process), eats a los of memory. 这是一个事实,Visual Studio 2010(devenv.exe进程),吃了一个内存的洛杉矶。

Sometimes when I want to fast develop a little project or just make a fast script I use Visual Studio 2008 because resouce consumption with previous version is evident. 有时,当我想快速开发一个小项目或只是制作一个快速脚本时,我使用Visual Studio 2008,因为以前版本的资源消耗很明显。

I recommend you to unistall all the visual studio 2010 extensions if you have any and make a new Solution for your project collections if the solution you are currently using was created long time ago. 如果您有任何内容,我建议您取消所有Visual Studio 2010扩展程序,如果您当前使用的解决方案是很久以前创建的,那么为项目集合创建一个新的解决方案。

You can try also VS2012. 你也可以尝试VS2012。 It has become better talking about resource consumption 谈论资源消耗已经变得更好了

Try stopping all instances of the ASP.NET development server between debugs. 尝试在调试之间停止ASP.NET开发服务器的所有实例。 My workstation seems to have a hard limit of 20 instances on different ports. 我的工作站似乎在不同的端口上有20个实例的硬限制。 As I type this, I have 5 rogue instances running who knows what. 当我输入这个时,我有5个流氓实例正在运行谁知道什么。 I manually close them, and I have warp capability again. 我手动关闭它们,我再次具有变形能力。

If you're not doing anything and your CPU is at 20-25% usage, then there's something wrong with your PC. 如果您没有做任何事情并且您的CPU使用率为20-25%,那么您的PC就会出现问题。 A modern PC doing nothing but running Windows should use 3-4%. 除了运行Windows之外什么也不做的现代PC应该使用3-4%。

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

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