globalPackagesFolder repositoryPath difference

后端 未结 2 552
春和景丽
春和景丽 2021-01-12 13:38

According to globalPackagesFolder NuGet Documentation, it allows you to change the location of the default global packages folder instead of Users{username}.nuget\\packages.

相关标签:
2条回答
  • 2021-01-12 13:45

    The globalPackagesFolder is a global cache of NuGet packages. This is where NuGet downloads NuGet packages to as a machine cache. NuGet may clean out the cache when too many packages are stored here.

    The repositoryPath is the packages directory a solution will use. It is usually a path relative to the solution. It can however be a global folder on your machine but typically it would not be the same as NuGet's global machine cache.

    0 讨论(0)
  • 2021-01-12 14:10

    As it stands today, it seems the two settings do the same, but globalPackagesFolder has to be used for projects using PackageReference, repositoryPath is for projects using packages.config.

    0 讨论(0)
提交回复
热议问题