What Really Worked
- Disable ReSharper code analysis: ReSharper | Options | Code Inspection | Settings | Enable code analysis | Uncheck
- Then analyze individual files on demand with
- Create a copy of the solution (File > Save Solution As)
- Unload all projects from the copy.
- Visual Studio will save these settings in the
- Use that solution for most development tasks.
- Load projects in that solution as needed.
- Build/Run from the command line.
Other Helpful Things
Nuclear Option: ReSharper > Options > Code Inspection > Settings
- Uncheck Enable Code Analysis
- Projects to Ignore > Add >
- Elements to skip > File masks > Add >
The ultimate step is to clear the Enable code analysis check box. This will disable the design-time inspection, but you will still be able to run code inspection in the desired scope when you need it.
Turn off some VS Settings: https://github.com/dotnet/roslyn/wiki/Performance-considerations-for-large-solutions
More Visual Studio Stuff
- Uninstall most VS extensions (including CodeLens/Developer Analytics)
- Disable NuGet Package restore (use command line NuGet intead)
Disable Windows Defender: https://www.tenforums.com/tutorials/5918-turn-off-windows-defender-windows-10-a.html
- Performance Options > Adjust for best performance.
- Services > Windows Search > Startup type > Disabled