Visual Studio 2013 hangs when opening a solution

后端 未结 27 1263
天命终不由人
天命终不由人 2020-12-12 18:51

I installed VS2013 (v12.0.21005.1) and added ReSharper 8 (v8.0.2000.2660) a day or two ago. That day it was fine. Now I\'m lucky if I can get it to open one solution in a wh

相关标签:
27条回答
  • 2020-12-12 19:03

    I had similar issue, when i checked the solution file it was created by VS.Net 2012. To resolve the issue, I created dummy solution file and reloaded the projects from vs.net 2012.

    Also observed when nuget package update got screwed up, while you reload the solution, Visual Studio might get hang.

    The Visual Studio might go hang, when there was a problem in loading the nuget packages.

    0 讨论(0)
  • 2020-12-12 19:03

    Try to uninstall extensions with "Control Panel" or disable any add-in in [Tools]=>[Add-in Manager] then try to reopen the solution.

    My problem was fixed by uninstall "Visual Localizer".

    0 讨论(0)
  • 2020-12-12 19:05

    Sorry for having to create a new post instead of commenting on the selected answer .. I do not have enough rep to comment at this time.

    My issue was was temporarily resolved by the "...delete the .suo file ..." solution, and as other folks pointed out, I had to delete the file every single time.

    Since it (apparently) is impossible to stop the creation of the file I started to dig a little more into what the file did. In addition to saving user settings, I believe it is also saving session settings, like which files you have open when VS is closed. I suspected that my project is attempting to open a file that no longer exists and that is what is causing the hang. What fixed things on my end was to delete the .suo, open VS, open a file within my solution, build and close the solution. After doing this I have had no hangs.

    tl:dr

    In my case, a user setting file(.suo) was attempting to open a file in my solution that no longer existed. I resolved the issue by performing the following steps.

    1. Delete the .suo file (for me this was in /[projectfolder]/.vs/[projectname]/v14
    2. Open Visual Studio
    3. Open your project
    4. Open a file (I simply opened a random .cs file)
    5. Build and save your solution (Simply saving may do the trick, I built by habit)
    6. Close Visual Studio

    Hope this helps someone ... we spent way too many hours on this issue :)

    0 讨论(0)
  • 2020-12-12 19:06

    I get this issue now and again - VS 2013 Update 2, Win 8.1, IE 11.

    Try this - Open task manger, kill the VS app hanging, and then close any IE sessions that are running in the Background Process list - there may be one or more hanging around.

    Restart VS

    Seems to clear it for me, without a reboot.

    0 讨论(0)
  • 2020-12-12 19:07

    Are you using any node modules in your project? Or can you identify that it is a ReSharper specific issue?

    If you've got NPM modules (eg. for Grunt), mark your 'node_modules' folder as 'hidden' (no need to make child folders hidden though), and try again.

    Visual Studio was hanging on open for me, turned out it was trying to scan deeply nested node modules with file paths longer than the Windows maximum (260 characters), and this was preventing me from opening the solution in VS, but marking the folder as hidden solved the problem.

    0 讨论(0)
  • 2020-12-12 19:09

    Basically it could be anything, but you can try a few things:

    1. Turning it off and on again.
    2. Clear the ReSharper cache, it's in %LOCALAPPDATA%\JetBrains\ReSharper\<CurrentVersion>\SolutionCaches, where you should find a folder matching the solution you are trying to open. Just close all instances of VS2013, delete the folder and try again.
    3. turn off ReSharper: Tools > Options > ReSharper > General > Suspend
    4. uninstall ReSharper completely and see if problems persists.
    5. Repair Visual Studio through Programs and Features.
    0 讨论(0)
提交回复
热议问题