The nuget cache for a user account is normally located underC:\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.
The default is %userprofile%\. nuget\packages (Windows) or ~/. nuget/packages (Mac/Linux). A relative path can be used in project-specific nuget.
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.
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.
Yes, the . nuget folder is used as a cache for packages downloaded to speed up project restore and compilation. It can safely be removed.
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With