Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the nuget cache located for the LOCAL SYSTEM account?

The nuget cache for a user account is normally located under
C:\Users\<user>\AppData\Local\NuGet\Cache.
But where is it to be found for the LOCAL SYSTEM account? This special user has no ordinary profile.

This combination is a quite common scenario for a build server, e.g. TeamCity.

like image 793
MEMark Avatar asked Sep 07 '15 11:09

MEMark


People also ask

Where are NuGet files stored?

The default is %userprofile%\. nuget\packages (Windows) or ~/. nuget/packages (Mac/Linux). A relative path can be used in project-specific nuget.

How do I clear a NuGet project cache?

Using Visual StudioOpen Visual Studio, go to Tools -> NuGet Package Manager -> Package Manager Settings menu. Click Clear All NuGet Cache(s) button in options dialog then clearing process is started. Once NuGet cache location is cleared, click ok button.

Where is NuGet config on Windows?

You can also place the file at %appdata%\NuGet\NuGet. Config and it will be used everywhere. In Visual Studio 2017 open the solution, then go to tools > options > NuGet Package Manager > Package Source. You should see your sources listed.

Can I delete the .NuGet folder?

Yes, the . nuget folder is used as a cache for packages downloaded to speed up project restore and compilation. It can safely be removed.


1 Answers

On a 32-bit machine it's located under
%windir%\System32\config\systemprofile\AppData\Local\NuGet\Cache.

On a 64-bit machine it's located under
%windir%\SysWOW64\config\systemprofile\AppData\Local\NuGet\Cache.

like image 161
MEMark Avatar answered Sep 30 '22 00:09

MEMark