[英]Placing dlls in bin directory after successfull build
I was working on a project , I needed to add a folder inside my application which consists some usefull dlls 我正在研究一个项目,我需要在我的应用程序中添加一个包含一些有用的dll的文件夹
under properties of my dll , I have changed the Copy to output directory field to copy always 在我的dll的属性下,我已经将复制到输出目录字段更改为始终复制
On successfull build of my project I am getting the bin folder as : 在成功构建我的项目时,我将bin文件夹作为:
After building the project I found out that my dll is placed inside DLL folder but I do not want such folder , I want it to be inside the bin folder only , how can I achieve that. 在构建项目后,我发现我的dll被放在DLL文件夹中,但我不想要这样的文件夹,我希望它只在bin文件夹中,我怎么能实现它。
simply delete the dll folder in both vs and the windows folder, then add them as references for your project and set there properties to copy always 只需删除vs和windows文件夹中的dll文件夹,然后将它们添加为项目的引用,并设置要始终复制的属性
you still may copy them manually the first time to make sure everything is going just fine 您仍然可以在第一时间手动复制它们以确保一切正常
如果项目已经引用了DLL,则VS会将dll复制到bin文件夹。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.