globalPackagesFolder repository路径差异 [英] globalPackagesFolder repositoryPath difference

查看:8
本文介绍了globalPackagesFolder repository路径差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据 globalPackagesFolder NuGet 文档,它允许您更改默认全局包文件夹的位置,而不是 Users{username}.nugetpackages.所以,我知道它是存放包裹的地方.

According to globalPackagesFolder NuGet Documentation, it allows you to change the location of the default global packages folder instead of Users{username}.nugetpackages. So, I figure out it's where packages are stored.

另一方面,repositoryPath NuGet Documentation,它允许您将 NuGet 包安装在指定的文件夹中.

By other hand, repositoryPath NuGet Documentation, it allows you to install the NuGet packages in the specified folder.

我不明白这个文档在说什么.

I don't understand what this documentation is treating to say.

谁能帮我解释一下每个是哪一个?

Could anybody exaplin me which's each one for?

推荐答案

globalPackagesFolder 是 NuGet 包的全局缓存.这是 NuGet 将 NuGet 包作为计算机缓存下载到的地方.当此处存储的包过多时,NuGet 可能会清除缓存.

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.

repositoryPath 是解决方案在使用 packages.config 文件时将使用的包目录.它通常是相对于解决方案的路径.但是,它可以是您计算机上的全局文件夹,但通常与 NuGet 的全局计算机缓存不同.

The repositoryPath is the packages directory a solution will use, when using a packages.config file. 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.

这篇关于globalPackagesFolder repository路径差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆