如何在Visual Studio中使用第三方库

编程入门 行业动态 更新时间:2024-10-27 09:44:48
本文介绍了如何在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解决方案文件夹 - 请参阅 msdn.microsoft/en-us/library/haytww03(v=vs.80).aspx 如果您在一个解决方案参考中有更多项目,这是很好的你的第三方库。 如果你想让你的lib在不同的解决方案中使用它可以安装在GAC中并从那里重新启动(我不喜欢)这个,因为我认为每个项目都应该独立于一个特殊的开发人员机器) - 所以我会把它复制到一个特殊的include文件夹中,用于每个解决方案。 You can use a VisualStudio Solution folder - see msdn.microsoft/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中使用第三方库

本文发布于:2023-05-27 23:09:56,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/306069.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:第三方   如何在   Visual   Studio

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!