你在哪里把你的第三方库? [英] Where do you put your 3rd party libraries?

查看:105
本文介绍了你在哪里把你的第三方库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一大堆的的.dll 的组件,如 HtmlAgilityPack MoreLinq 。我应该在哪里把这些文件?我通常在我的地方折腾他们的项目文件夹,但后来我总是四处寻找他们。有没有办法把它们放在一个标准的地方吗?

I've got a bunch of .dll assemblies, such as HtmlAgilityPack and MoreLinq. Where am I supposed to put these files? I usually toss them somewhere in my Projects folder, but then I'm always digging around for them. Is there a standard place to put them?

推荐答案

有没有的标准的地方,把他们,但确保你:

There's no standard place to put them, but make sure you:


  • 把它们放在一个地方

  • 它们包含在源代码控制

我把所有我需要的DLL在我的解决方案顶级目录中称为相关性,平行于项目文件夹。我有他们的源代码控制,这样当新的开发人员检查出的解决方案,这一切编译和作品的权利了。这是去的唯一途径。

I put all my required dll's in a top level directory in my solution called "Dependencies", parallel to the project folders. I have them in source control such that when new developers check out the solution, it all compiles and works right off. It's the only way to go.

我只包含绝对需要的.dll文件。这使得它的光,这是很好的,但后来当我发现一些的其他的MVC还有contrib或者部分什么,我需要,我必须去寻找解压目录,这甚至可能不是我的电脑上!其他人把整个库目录(readme.txt文件和所有)为解挂他们的源代码控制的一部分。这可确保您和未来的开发人员将有他们需要的一切,但增添了些许自重。无论是一个很好的策略。

I include only the .dll files absolutely needed. This keeps it light, which is good, but then when I find some other part of MVC Contrib or whatever that I need, I have to go find the unzipped directory, which might not even be on my computer! Others put entire library directories (readme.txt and all) as part of their source control linked to the solution. This ensures you and future developers will have everything they need, but adds a little dead weight. Either is a good strategy.

这篇关于你在哪里把你的第三方库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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