简体   繁体   English

在其他Class库中添加DLL,供实际项目使用C#

[英]Add DLL in other Class Library to be used by actual project C#

I am wokring on a C# Win-Forms application.我正在使用 C# Win-Forms 应用程序。 I have my own ClassLibrary (dll) file.我有自己的 ClassLibrary (dll) 文件。 I use another Third party dll for components.我使用另一个第三方 dll 作为组件。 I use both of the above dll's in my C# application.我在我的 C# 应用程序中使用了上述两个 dll。 When I provide the files I got to provide both the dll's seperately.当我提供文件时,我必须分别提供两个 dll。 Is it possible to add third party dll in my class library OR add both in a third dll and add only 1 dll in the project.是否可以在我的 class 库中添加第三方 dll 或者在第三个 dll 中添加两者并在项目中仅添加 1 Z06416233FE5EC48AZE4。

Also let me know how it is possible, as I am unaware with it.也让我知道这是怎么可能的,因为我不知道。 I use Visual Studio C#.我使用 Visual Studio C#。 Any help is highly appreciated.非常感谢任何帮助。

Thanks谢谢

Try looking up ILMerge ;尝试查找ILMerge it's intended to build composite libraries.它旨在构建复合库。

See Merging .NET assemblies using ILMerge for how to merge two assemblies有关如何合并两个程序集的信息,请参阅使用 ILMerge 合并 .NET 程序

You can download ILMerge utility provided by Microsoft from here您可以从此处下载 Microsoft 提供的 ILMerge 实用程序

you can merge the two libraries only if you have the source codes, then you can compile the two in one single assembly.只有拥有源代码才能合并这两个库,然后才能在一个程序集中编译这两个库。 other than that it might be well possible to merge the two assemblies but its gonna be a pain in the butt depending on each library.除此之外,很可能合并这两个程序集,但取决于每个库,这将是一件很痛苦的事情。 why bother?何必? deploy both of 'em [:部署他们两个[:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM