嵌入组件的另一个组件内 [英] Embedding assemblies inside another assembly

查看:171
本文介绍了嵌入组件的另一个组件内的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您创建一个使用的东西与其他组件类库,它是可以嵌入类库里面的其他组件为某种资源?

If you create a class library that uses things from other assemblies, is it possible to embed those other assemblies inside the class library as some kind of resource?

即。而不用的 MyAssembly.dll程序 SomeAssembly1.dll SomeAssembly2.dll 的坐在文件系统上,与其他两个文件获得捆绑到 MyAssembly.dll程序的,并在其code可用。

I.e. instead of having MyAssembly.dll, SomeAssembly1.dll and SomeAssembly2.dll sitting on the file system, those other two files get bundled in to MyAssembly.dll and are usable in its code.

我也是为什么.NET程序集的 .DLL 的文件有点困惑。没有.NET之前,这种格式的存在吗?是否所有的.NET程序集的DLL,但不是所有的DLL文件是.NET程序集?为什么他们使用相同的文件格式和/或文件扩展名?

I'm also a little confused about why .NET assemblies are .dll files. Didn't this format exist before .NET? Are all .NET assemblies DLLs, but not all DLLs are .NET assemblies? Why do they use the same file format and/or file extension?

推荐答案

看看 <一个href="http://www.microsoft.com/downloads/details.aspx?FamilyID=22914587-b4ad-4eae-87cf-b14ae6a939b0&displaylang=en"相对=nofollow> ILMerge 作为合并组件。

Take a look at ILMerge for merging assemblies.

我也是为什么.NET程序集是.dll文件有点困惑。没有.NET之前,这种格式的存在吗?

I'm also a little confused about why .NET assemblies are .dll files. Didn't this format exist before .NET?

是的。

是否所有的.NET程序集的DLL,

Are all .NET assemblies DLLs,

无论是DLL或EXE正常 - 但也可以netmodule

Either DLLs or EXE normally - but can also be netmodule.

但不是所有的DLL文件是.NET程序集?

but not all DLLs are .NET assemblies?

正确的。

为什么他们使用相同的文件格式和/或文件扩展名?

Why do they use the same file format and/or file extension?

为什么要在什么不同 - 它有异曲同工之妙。

Why should it be any different - it serves the same purpose!

这篇关于嵌入组件的另一个组件内的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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