Where is Visual Studio 2022 storing the nupkg-files

6k views Asked by At

I use Visual Studio 2022. There I have seen, that it stores the NuGet-Packages-Reference in the csproj-File as PackageReference. Now I am searching for the nupkg-files. Where are they stored in Visual Studio 2022? I didn't find them.

2

There are 2 answers

5
PMF On BEST ANSWER

There are several locations where the nuget files are stored and/or decompressed. You get them with the following command:

dotnet nuget locals -l all

For me, this returns:

C:\projects>dotnet nuget locals -l all
http-cache: C:\Users\PMF\AppData\Local\NuGet\v3-cache
global-packages: C:\Users\PMF\.nuget\packages\
temp: C:\Users\PMF\AppData\Local\Temp\NuGetScratch
plugins-cache: C:\Users\PMF\AppData\Local\NuGet\plugins-cache
2
Peng Ge On

This document might be useful to you: nuget.config reference

The location of the default global packages folder. The default is %userprofile%.nuget\packages (Windows) or ~/.nuget/packages (Mac/Linux).