BennoDual
BennoDual

Reputation: 6259

Where is Visual Studio 2022 storing the nupkg-files

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.

Upvotes: 5

Views: 8853

Answers (2)

Peng Ge
Peng Ge

Reputation: 299

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

Upvotes: 3

PMF
PMF

Reputation: 17185

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

Upvotes: 8

Related Questions