Home > Back-end >  Where is Visual Studio 2022 storing the nupkg-files
Where is Visual Studio 2022 storing the nupkg-files

Time:05-05

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.

CodePudding user response:

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).

CodePudding user response:

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
  • Related