问题
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:
(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?
回答1:
Usually removing of the hidden .vs folder in solution directory fixes the problem.
回答2:
Possible solutions:
Delete
.vsfolder as mentioned aboveClear temp files from
%USERPROFILE%\AppData\Local\TempReadjust source control in
Tools->Options->Source control->Plugins, set toNone,Save, close VS. Then reopen it and reset the plugin.
There is no particular order, but one of them might help.
回答3:
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:
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.
回答5:
Open the project as a website instead of loading solution file
来源:https://stackoverflow.com/questions/39703475/visual-studio-freezing-crashing-while-loading-solution