Visual Studio 2022 在哪里存储 nupkg 文件

Where is Visual Studio 2022 storing the nupkg-files

我使用 Visual Studio 2022。我看到,它将 NuGet-Packages-Reference 作为 PackageReference 存储在 csproj-File 中。 现在我正在搜索 nupkg 文件。 Visual Studio 2022 年它们存放在哪里?我没找到。

有几个存储 nuget 文件的位置 and/or 已解压。您可以使用以下命令获取它们:

dotnet nuget locals -l all

对我来说,这个 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

此文档可能对您有用: nuget.config reference

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