第三方引用的DLL不被复制打造出来的

编程入门 行业动态 更新时间:2024-10-25 10:31:12
本文介绍了第三方引用的DLL不被复制打造出来的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个第三方的.NET的DLL被参考和使用我的DLL /类库项目A。我的控制台应用程序项目B项目引用A。

I have a thirdparty dll being reference and used by my dll/class library project "A". My console app project "B" references project "A".

我的问题是第三方DLL不被复制到生成出来的控制台应用程序项目B。

My problem is the thirdparty dll is not being copied to the build out for console app project "B".

有什么问题吗?在我的dll /类库的第三方DLL ref'd设置为LocalCopy =真。

What’s the problem here? The thirdparty dll ref’d in my dll/class library is set to LocalCopy=true.

我使用VS2008和.NET 3.5。

I'm using vs2008 and 3.5.

在此先感谢

推荐答案

B项目需要明确地引用第三方DLL,基本上是这样。参考文献都没有的摆出的传递。 (如果您尝试使用在项目中的任何类从第三方库暴露类型,你甚至会得到一个编译错误。)

Project B needs to explicitly reference the third party DLL, basically. References aren't assumed to be transitive. (If you try to use any classes in project A which expose types from the third party library, you'll even get a compilation error.)

这可以是一个痛苦,但至少它明确你真的拖动

It can be a pain, but at least it makes it clear what you're really dragging in.

更多推荐

第三方引用的DLL不被复制打造出来的

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

发布评论

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

>www.elefans.com

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