Visual Studio freezing (crashing) while loading so

2020-02-05 01:07发布

I've met with a strange problem. I had 7 projects in the solution. I had to add another MVC project. Now when the document (from the new project) is opened (for example HomeController.cs) and when this project is initializing at the start, it freezes the whole IDE like this:

enter image description here

(Some projects do not load)

After that, I have to kill the process. When I open VS again and fast click on another project (which is initializing) the freezing issue is gone. I have no idea what can cause a problem like this. I've tried with and without ReSharper but I get the same result. Also, I restored default settings of VS. Also repaired whole VS.

Maybe someone had the same problem and could give some helpful advice?

5条回答
Rolldiameter
2楼-- · 2020-02-05 01:42

Possible solutions:

  • Delete .vs folder as mentioned above

  • Clear temp files from %USERPROFILE%\AppData\Local\Temp

  • Readjust source control in Tools -> Options -> Source control -> Plugins, set to None, Save, close VS. Then reopen it and reset the plugin.

There is no particular order, but one of them might help.

查看更多
兄弟一词,经得起流年.
3楼-- · 2020-02-05 01:54

I used to have this problem, it was solved just by double clicking any of the stuck projects. This nudges the loading process somehow and causes unloaded projects to complete its loading.

查看更多
叼着烟拽天下
4楼-- · 2020-02-05 02:02

Open the project as a website instead of loading solution file

查看更多
Explosion°爆炸
5楼-- · 2020-02-05 02:03

Usually removing of the hidden .vs folder in solution directory fixes the problem.

查看更多
仙女界的扛把子
6楼-- · 2020-02-05 02:09

Delete the .suo file in the solution folder.

I am pretty sure I found this answer somewhere on Stackoverflow before, but now I can't find it anymore. Credits to whoever came up with this.

查看更多
登录 后发表回答