如何在Visual Studio中使用第三方库 [英] How to use third part library in Visual Studio

查看:179
本文介绍了如何在Visual Studio中使用第三方库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我想在我的项目中加入第三方库。

有些帖子告诉我直接复制dll在我的bin文件夹中。

我可以将它放在一个通用文件夹中,以便所有第三方库都在一个地方,并且可以在任何项目中引用吗?

Hello,

I want to include a third party library in my project.
Some posts tell me to copy the dll directly in my bin folder.
Can I instead put it in a generic folder so that all the third party libraries are in one place and can be referenced in any project?

推荐答案

您可以使用VisualStudio解决方案文件夹 - 请参阅 http://msdn.microsoft.com/en-us/library/haytww03(v=vs.80).aspx

如果您在一个解决方案参考中有更多项目,这是很好的你的第三方库。



如果你想让你的lib在不同的解决方案中使用它可以安装在GAC中并从那里重新启动(我不喜欢)这个,因为我认为每个项目都应该独立于一个特殊的开发人员机器) - 所以我会把它复制到一个特殊的include文件夹中,用于每个解决方案。
You can use a VisualStudio Solution folder - see http://msdn.microsoft.com/en-us/library/haytww03(v=vs.80).aspx
This is good if you have more projects in one solution referencing your 3rd party lib.

If you want your lib to be used in different solutions it could be installed in the GAC and refenced from there (I don''t like this, because I think every project should be independent from a special developer machine) - So I''d copy it to a special "include" folder for every solution.


这篇关于如何在Visual Studio中使用第三方库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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