我有一个第三方.net dll被我的dll /类库项目“A”引用并使用。 我的控制台应用程序项目“B”引用项目“A”。
我的问题是第三方dll没有被复制到控制台应用程序项目“B”的构建。
这有什么问题? 我的dll / class库中的第三方dll参考设置为LocalCopy = true。
我正在使用vs2008和.net 3.5。
提前致谢
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”.
My problem is the thirdparty dll is not being copied to the build out for console app project “B”.
What’s the problem here? The thirdparty dll ref’d in my dll/class library is set to LocalCopy=true.
I'm using vs2008 and .net 3.5.
Thanks in advance
最满意答案
项目B基本上需要明确引用第三方DLL。 参考文献不被认为是可传递的。 (如果您尝试使用项目A中的任何类来暴露第三方库中的类型,您甚至会收到编译错误。)
这可能是一种痛苦,但至少它清楚地说明了你真正拖入的内容。
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未被复制以构建(Third-party referenced dll not been copied to build out)我有一个第三方.net dll被我的dll /类库项目“A”引用并使用。 我的控制台应用程序项目“B”引用项目“A”。
我的问题是第三方dll没有被复制到控制台应用程序项目“B”的构建。
这有什么问题? 我的dll / class库中的第三方dll参考设置为LocalCopy = true。
我正在使用vs2008和.net 3.5。
提前致谢
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”.
My problem is the thirdparty dll is not being copied to the build out for console app project “B”.
What’s the problem here? The thirdparty dll ref’d in my dll/class library is set to LocalCopy=true.
I'm using vs2008 and .net 3.5.
Thanks in advance
最满意答案
项目B基本上需要明确引用第三方DLL。 参考文献不被认为是可传递的。 (如果您尝试使用项目A中的任何类来暴露第三方库中的类型,您甚至会收到编译错误。)
这可能是一种痛苦,但至少它清楚地说明了你真正拖入的内容。
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.
发布评论