本文介绍了如何在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中使用第三方库
发布评论