简体   繁体   English

成功构建后将dll放在bin目录中

[英]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.

相关问题 不需要的文化特定 dll 复制到 bin 目录 - unwanted culture specific dlls copied to bin directory 为什么我的 bin 发布目录中有 System.*.* dll? - Why are there System.*.* dlls in my bin release directory? 使用运行时进行构建和探测后,如何更改.dll创建的默认目录? - How to chage default directory of .dlls creating after built with runtime and probing? 解决方案后,bin文件夹中有多个exe - multiple exe in bin folder after build solution C#:构建后在程序清单中声明了哪些Dll - C#: which Dlls are declared in the assembly manifest after the build 提交成功后进行验证 - Validation occured after Successfull Submission 配置MSBuild以构建解决方案,并为每个项目将构建的dll放入一个目录,将外部库放入另一个目录 - Configure MSBuild to build a solution and for each project put the built dlls into one directory and external libraries into another MSBuild 将 dll 复制到 bin 文件夹,而不是遵循路径 - MSBuild copy dlls to bin folder, not following the path Azure函数未找到root / bin中的共享DLL - Azure Functions Shared DLLs in root /bin not found 未将引用的ClassLibrary的从属DLL添加到应用程序的BIN中 - Dependent DLLs of referenced ClassLibrary not added to BIN of application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM