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

16,741
  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.

Share:
16,741

Related videos on Youtube

Aisah Hamzah
Author by

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, 2022

Comments

  • Aisah Hamzah
    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:

    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?

    • Sara Liu - MSFT
      Sara Liu - MSFT about 7 years
      Hi 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
    Patrick almost 7 years
    I 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
    VAUser1 about 6 years
    Deleting the .vs folder fixed it for me
  • Aisah Hamzah
    Aisah Hamzah over 5 years
    If 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.