问题描述
我有写在ASP.NET MVC3一个相对较小的项目。工作一段时间后,Visual Studio 2010中成为剃须刀的观点很慢(其他文件类型工作的罚款)。随着慢我的意思是每个按键大约需要1秒注册。不要紧,那是什么按键是 - 键入一个字母是粘贴标记一屏一样慢。在此期间放缓VS2010消耗1个CPU核心为100%。我重新启动VS2010后,一切顺利又来了一个小会。这发生在任何和所有的剃刀意见。
I've got a relatively small project written in ASP.NET MVC3. After working a while, Visual Studio 2010 becomes very slow in Razor views (other file types work fine). With "slow" I mean "every keystroke takes around 1 second to register". It doesn't matter what that keystroke was - typing a single letter is as slow as pasting a screenful of markup. During this slowdown VS2010 consumes 1 CPU core to 100%. After I restart VS2010, everything goes smoothly again for a small while. This happens in any and all Razor views.
我的电脑是不是最好的,但它应该是足够了:酷睿2 6700,4GB内存(目前只有75%装有VS2010正在缓慢和所有,所以它不是一个内存不足)时,Windows 7 64位系统。
My PC isn't the best, but it should be enough: Core 2 Duo 6700, 4GB of RAM (currently only 75% filled with VS2010 being slow and all, so it's not a RAM shortage), Windows 7 x64.
该项目已接近尾声,我记得大多数时候没有问题。这已经开始只是最近,虽然我不能想象什么可能导致它。
The project is close to an end, and I remember that for most time there were no problems. This has started only recently, although I cannot imagine what could have caused it.
有没有人有什么可能是错的,什么可以做,以解决它的任何想法?
Does anyone have any ideas about what could be wrong and what could be done to fix it?
推荐答案
有插件 - TFS / AnkvSVN和ReSharper的都导致问题对我来说。
It is plugins - TFS/AnkvSVN and ReSharper have all caused problems for me.
关闭它们一个接一个,辨别哪一个(如果只有一个),导致你的悲伤。
Turn them off one by one, to discern which one (if only one) is causing you grief.
当你找到罪魁祸首,一定要保持任何补丁吧。
When you find the culprit, make sure you keep up on any patches with it.
在极端情况下,请关闭电源,如果你有一个漫长的发展会话,不需要它的全部时间(SVN比如可以当你准备做提交和检查插件,打开上等)
In extreme cases, turn if off if you have a long development session and don't need it the whole time (SVN for instance could be turned on when you are ready to do commits and check ins, etc.)
这篇关于ASP.NET MVC3剃刀的观点 - 在VS2010极其缓慢编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!