使用NuGet在开发人员之间共享代码 [英] Using NuGet to share code across developers

查看:90
本文介绍了使用NuGet在开发人员之间共享代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用NuGet来寻找一种更好的共享和更新程序包的方法,以便在多个开发人员之间共享.

I am using NuGet in attempt to find a better way to share and update packages to share across multiple developers.

我安装了Nuget,并选择了管理| NuGet包装"选项,

I installed Nuget and after choosing the option "Manage | NuGet pakages",

我安装了软件包"HtmlAgilityPack",并注意到它在我的解决方案"文件夹中放置了一个软件包目录.

I installed the package "HtmlAgilityPack" and noticed it put a packages directory in my Solutions folder.

因此,我假设如果要与其他开发人员共享此应用程序,我也必须将此程序包添加到我的存储库中....

So I assume if wanted to share this application with for other developers to work on, I had to add this package to my repository as well....

这并不是我想要的,因为我更喜欢将软件包安装在更全球化的位置,以便其他应用程序也可以访问它们...

This is not exactly what I want as I prefer my packages installed in a more global location so that other applications can access them as well...

有更好的方法吗?

推荐答案

此功能刚刚添加到Nuget 1.6中.
请参阅 Nuget软件包还原.

This was just added to Nuget 1.6.
See Nuget Package Restore.

这篇关于使用NuGet在开发人员之间共享代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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