Change NuGet package folders used by Visual Studio 2017

前端 未结 3 913
独厮守ぢ
独厮守ぢ 2020-12-04 18:04

There is no more packages solution folder in any csproj or project.json-based .NET Core project.

NuGet CLI gets the list of us

3条回答
  •  死守一世寂寞
    2020-12-04 18:43

    From the MS docs:

    global‑packages

    • Windows: %userprofile%\.nuget\packages
    • Mac/Linux: ~/.nuget/packages

    Override using the NUGET_PACKAGES environment variable, the globalPackagesFolder or repositoryPath configuration settings (when using PackageReference and packages.config, respectively), or the RestorePackagesPath MSBuild property (MSBuild only). The environment variable takes precedence over the configuration setting.

提交回复
热议问题