Microsoft.Build.Utilities.FileTracker threw an exception error. Happens with different projects

前端 未结 4 1821
陌清茗
陌清茗 2021-01-17 15:47

Lately with Visual Studio 2010 Ultimate, C#, in Win7 64bit, I get the error below when I compile any project. The workaround is to add false<

4条回答
  •  野的像风
    2021-01-17 16:50

    I found the solution for my environment by reflecting Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Build.Utilities.v4.0.dll

    My TEMP/TMP environment variable was pointing to a ram drive root folder (T:\) without any further directory nesting! The line s_tempPath = Path.GetDirectoryName(Path.GetTempPath()); in the static ctor of Microsoft.Build.Utilities.FileTracker resulted in null, which caused the exception as mentioned by you.

    Now my TEMP/TMP environment variable is pointing to T:\TEMP and everything is working fine.

提交回复
热议问题