Visual Studio 2017 15.7 Preview 2打开解决方案时卡顿无响应
Hey Sam, sorry to hear you're stuck with this frustrating issue—many users did report similar problems with VS 2017 15.7 Preview 2 back when it was released. Let's walk through some tried-and-true fixes that got people back to work:
Clear Visual Studio's Component Cache
First, close all running instances of Visual Studio. Then navigate to these folders and delete their contents (skip any files that are marked as in use):%LOCALAPPDATA%\Microsoft\VisualStudio\15.0_*\ComponentModelCache%TEMP%(delete as many files here as you can)
Restart VS and try opening your solution again. Caching glitches are a common cause of hangs during solution load, so this often does the trick.
Reset Visual Studio Settings
Open Command Prompt as Administrator, then run this command:devenv.exe /ResetSettings
This will revert VS to its default configuration. If your issue was caused by a corrupted setting file, this should resolve it. Just note you'll need to reapply any custom settings afterward.Disable Third-Party Extensions
Extensions frequently cause bugs in preview builds. Start VS in safe mode with this command:devenv.exe /SafeMode
If the solution loads successfully here, head to Tools > Extensions and Updates and disable/uninstall extensions one by one to find the problematic one.Repair the Visual Studio Installation
Open the Visual Studio Installer, locate your 15.7 Preview 2 installation, click the three dots (...) next to it, and select Repair. This fixes any corrupted or missing installation files that might be causing the hang. It takes a bit of time, but it's a reliable fix for many installation-related issues.Work Around the Corrupted Solution File
If opening the .sln directly fails, create a new empty project first, then manually add your existing project files to it. Sometimes the solution file itself gets corrupted, and this workaround lets you get back to work while you troubleshoot the original file.
I hope one of these fixes gets you up and running again—let me know if you need more details on any step!
内容的提问来源于stack exchange,提问作者Sam

