为什么由于环境变量,Visual Studio 在打开解决方案时崩溃



Visual Studio 2010 SP1 在打开解决方案时崩溃。调试的视觉工作室和以下是引发的异常。

以下是异常日志:

MSB0001: Internal MSBuild Error: Environment variable name or value is too long.
=============
System.ArgumentException: Environment variable name or value is too long.
   at System.Environment.SetEnvironmentVariable(String variable, String value)
   at Microsoft.Build.BackEnd.InProcNode.HandleShutdown(Exception& exception)
   at Microsoft.Build.BackEnd.InProcNode.Run(Exception& shutdownException)

发现机器上的环境变量太长,摆脱了一些不必要的变量。

最新更新