VS2017 freezes when adding a particular NuGet package to a solution when ReSharper is enabled
Over the last few months I have received several reports of Visual Studio 2017 Enterprise freezing once a particular NuGet package is added to a solution. VS doesn't pin the CPU, crash, or anything like that, but it goes completely non-responsive and we have to kill it from the task manager. This happens with the latest version of VS2017, which at the time of writing was version 15.7.4, but has been happening for at least the last 3 or 4 months through the various releases of VS2017. Upon going back in to VS2017 and re-opening the solution/project it froze on, the NuGet package shows as added to the solution/project.
This behavior only happens when ReSharper is enabled. If ReSharper is suspended, the addition of the NuGet package successfully finishes and VS2017 doesn't freeze. ReSharper can then be re-enabled and things proceed as normal. We are running the latest version of ReSharper, which at the time of writing was version 2018.1.2. It happens on a variety of machines, under Windows 7 Pro and Windows 10 Pro, and can reliably be recreated. The NuGet package in question is one we host on our internal NuGet server, which we grabbed from here (Abraham Heidebrecht's GitHub repository):
https://github.com/abe545/DisableSourceControlIntegration-TFS
Reproduction steps:
- Start VS2017 with the ReSharper add-in enabled.
- Create a new project, for example a C# console application, and save it.
- Bring up the NuGet package manager, point it at whatever repository has the above NuGet package in it, and install the package to your new project.
- Confirm that you want to install it.
- Watch VS go through the first rounds of installing it and then freezing.
- Kill VS from the task manager.
- Go back into VS, open the project you created in step 2, and verify that the package was installed.
Doing the above, but suspending ReSharper before creating the project, causes there to be no freeze during the install of the package. If you would like, I can provide the .nupkg file we have.
Please sign in to leave a comment.
Hello Ted!
Thank you for such detailed feedback.
I've filed correspondent issue - https://youtrack.jetbrains.com/issue/RSRP-470295
Please feel free to contact us in case of any questions or problems.
Thank you.