Abel
Abel

Reputation: 57189

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?

Upvotes: 26

Views: 18533

Answers (3)

I Stand With Israel
I Stand With Israel

Reputation: 2397

Related but maybe not exactly answering this question.

I had this issue but realized that the error message couldn't find v4.x.0, so I changed the filename in the AppData/Local/TEMP/ directory as well as the versions inside the code. Then I had another error saying it was missing v4.y.0. So, I copied the original file and had two files with both names and code pointing to both versions. I then ran the Clean Solution command and Rebuild command, restarted VS and then it worked.

Upvotes: 0

Just go to: Build, than select: Rebuild Solution ... As easy as that...

Upvotes: 0

pero
pero

Reputation: 4259

  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.

Upvotes: 38

Related Questions