依赖DLL是没有得到复制到Visual Studio中的生成输出文件夹 [英] Dependent DLL is not getting copied to the build output folder in Visual Studio

查看:420
本文介绍了依赖DLL是没有得到复制到Visual Studio中的生成输出文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Visual Studio解决方案。 我有很多项目的解决方案。 有它充当启动时,使用其他项目的主项目。 有一个项目说ProjectX的。其引用添加到主项目。 该引用ProjectX的其他.NET的DLL(比如abc.dll)不是解决方案的一部分。

I have a visual studio solution. I have many projects in the solution. There is one main project which acts as the start up and uses other projects. There is one project say "ProjectX". Its reference is added to main project. The ProjectX references another .NET dll (say abc.dll) that isn't part of the solution.

现在这个abc.dll应该被复制到主体工程斌/ debug文件夹中,但它没有得到复制那里。为什么没有得到复制,任何已知的原因?

Now this abc.dll should be copied to bin/debug folder of main project, but it isn't getting copied there. Why is it not getting copied, any known reasons ?

推荐答案

是的,你需要设置复制本地。然而,我是pretty的确定您还需要引用组件与主体工程并设置复制本地以及 - 它不只是得到的依赖程序集复制

Yes, you'll need to set Copy Local to true. However, I'm pretty sure you'll also need to reference that assembly from the main project and set Copy Local to true as well - it doesn't just get copied from a dependent assembly.

您可以在引用点击组件到达复制本地属性和pressing F4

You can get to the Copy Local property by clicking on the assembly under References and pressing F4.

这篇关于依赖DLL是没有得到复制到Visual Studio中的生成输出文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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