每当我在 Visual Studio 中加载一个将特定项目设置为启动项目的解决方案时,我都会遇到 VSHost32.exe 崩溃。如果我继续运行并启动应用程序,我会收到 COMException:
{"Invalid value for registry (Exception from HRESULT: 0x80040153 (REGDB_E_INVALIDVALUE))"}
使用堆栈跟踪:
at System.Runtime.InteropServices.RuntimeEnvironment.GetDeveloperPath()
at System.AppDomain.SetupFusionStore(AppDomainSetup info)
at System.AppDomain.SetupDomain(Boolean allowRedirects, String path, String configFile)