IntelliSense keeps giving [Failure] Could not find a part of the path C:\TEMP
- Exit Visual Studio
- Delete all non-project files (bin, obj. .vs, _ReSharper.Caches folders, *.suo files, ...)
- Start VS and rebuild
That fixed it for me.
Related videos on Youtube
Aisah Hamzah
Creator of the .NET XSLT 3.0 processor Exselt, which is currently in beta. You can reach me via Twitter (sometimes), by mail at [email protected] (be careful not to look like spam), or through my companies Exselt or Abrasoft (consultancy). I'm an invited expert of the W3C XSLT and XQuery Working Group where we develop the next version of XSLT: version 3.0. Since September 2015 the group went public, which means that most of the mail discussions can now be actively participated in. If you find a bug or other issue with the XSLT 3.0 specification, you can send a mail to [email protected], or you can visit the archives (since Sept 2015).
Updated on August 01, 2022Comments
-
Aisah Hamzah almost 2 years
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:
[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?-
Sara Liu - MSFT about 7 yearsHi Abel, please try to remove or delete the folders: C:\Users\<your users name>\AppData\Local\Microsoft\VisualStudio\14.0 and C:\Users\<your users name>\AppData\Roaming\Microsoft\VisualStudio\14.0. Delete the .suo file in your project folder and start the VS to open your project to rebuild it.
-
-
Patrick almost 7 yearsI have tried to delete the bin and obj folders but this could not help. When I deleted the suo files it worked again, thanks!
-
VAUser1 about 6 yearsDeleting the .vs folder fixed it for me
-
Aisah Hamzah over 5 yearsIf it only were true, that was the first thing I tried. The message kept coming back. But as already answered, it's a problem with the .vs folder, containing localized settings. Delete that and it solves the issue.