如何指定将安装所有 nuget 软件包的一个中心位置 [英] How can I specify one central place where all the nuget packages will be installed

查看:59
本文介绍了如何指定将安装所有 nuget 软件包的一个中心位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何指定将安装所有 nuget 包的一个中心位置,以便所有项目都可以引用相同的包文件夹.

How can I specify one central place where all the nuget packages will be installed, so that all projects can refer to the same packages folder.

当 1 个项目被删除时,引用不依赖于另一个项目.所以我可以轻松地在单个文件夹中更新新版本的 nuget 并适用于所有.

When 1 project have delete the reference does not depends on another project. so I can easily update the new version nuget in a single folder and works on all.

它还可以节省源代码管理中的磁盘空间.

It will also save disk space in source control.

有人可以给我任何建议吗?

Can someone give me any suggestions?

推荐答案

您可以通过 nuget.config 文件指定包文件夹的放置位置(或更改其名称).

You can specify where the packages folder should be placed (or change the name of it) via the nuget.config file.

请参阅:NuGet 配置设置指定'packages'文件夹位置

这篇关于如何指定将安装所有 nuget 软件包的一个中心位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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