Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliSense keeps giving [Failure] Could not find a part of the path C:\TEMP

After changing my temporary folder, I got an issue with IntelliSense in VS2015 complaining it cannot find the temp folder (other applications, including VS2015, find the new location just fine).

The error I receive after firing up a project (seems to happen with any type of solution, C#, ASP.NET etc) is repeatedly this message in the output window of Visual Studio 2015:

enter image description here

[Failure] Could not find a part of the path 'R:\TMP\.NETFramework,Version=v4.0.AssemblyAttributes.cs'.
[Failure] Could not find a part of the path 'R:\TMP\.NETFramework,Version=v4.0.AssemblyAttributes.cs'.
[Failure] Could not find a part of the path 'R:\TMP\.NETFramework,Version=v4.0.AssemblyAttributes.cs'.
[Failure] Could not find a part of the path 'R:\TMP\.NETFramework,Version=v4.0.AssemblyAttributes.cs'.
[Failure] Could not find a part of the path 'R:\TMP\.NETFramework,Version=v4.0.AssemblyAttributes.cs'.
[Failure] Could not find a part of the path 'R:\TMP\.NETFramework,Version=v4.0.AssemblyAttributes.cs'.
[Failure] Could not find a part of the path 'R:\TMP\.NETFramework,Version=v4.0.AssemblyAttributes.cs'.

I think I replaced all rogue references to the R:\TMP location in the registry, but this one remains. Anyone any idea how to fix this?

like image 581
Abel Avatar asked Mar 22 '17 13:03

Abel


1 Answers

  1. Exit Visual Studio
  2. Delete all non-project files (bin, obj. .vs, _ReSharper.Caches folders, *.suo files, ...)
  3. Start VS and rebuild

That fixed it for me.

like image 85
pero Avatar answered Oct 23 '22 07:10

pero