我有一个第三方的.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不被复制打造出来的
发布评论