第三方引用的DLL不被复制打造出来的 [英] Third-party referenced dll not been copied to build out

查看:269
本文介绍了第三方引用的DLL不被复制打造出来的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have a thirdparty .net 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 .net 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不被复制打造出来的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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