步骤来创建singlefile和多文件汇编?步骤、文件、singlefile

2023-09-06 17:11:43 作者:苏烟  L1uoい

我知道一个文件组件由清单+ IL +资源。还有一个装配式的群体的多个文件中的元素,称为多文件程序集。的Visual Studio .NET IDE只能用于创建单文件组件,但可以使用命令行编​​译器来创建多文件程序集。

这是对两种类型,我能找到组件的所有信息,而Google只返回的 http://msdn.microsoft.com/en-us/library/z38d5bzk(V = vs.71)的.aspx

但我并不满足,我不能清楚地说出他们两个竟然都是。我想知道的:

究竟什么是单​​个文件汇编?如何创建,步骤来创建,它是如何看? 究竟什么是多文件组件?如何建立,步骤来创建,它是如何看? 解决方案

基本上,一个单文件组件是具有包含在一个文件中所有的组件。这将是具有.DLL或.EXE延伸,并且是编译的.NET项目的文件。 Visual Studio中的C#项目(或库或应用程序)创建这些。

使用命令行编​​译器,可以组装分割成多个部分 - 在一个单一的组件的的清单包含查找信息的程序集的一部分要求,但存储在单独的文件中的信息。例如,可以保留一个资源图像(即:为.bmp),它是在其自己的文件的大的资源,所以,这是没有必要加载刚打开组件。不支持由Visual Studio创建多文件的组件,但这些将看起来像一个DLL或EXE,加零个或多个netmodule文件,以及零个或多个资源文件(其可以是任何东西)。主要的DLL或EXE包含指定了其他文件所在的清单。构建此所需的步骤详见如何:建立一个多文件大会

单个pdf文件分解成多个pdf文件

I know a single file assembly consists of Manifest + IL + Resources. There is also an assembly type that groups its elements in multiple files, called a multi-file assembly. Visual Studio .NET IDE can only be used to create single-file assemblies, but Multifile assemblies can be created using command-line compilers.

This is all the information on the two types of assemblies that I could find, and google only returns http://msdn.microsoft.com/en-us/library/z38d5bzk(v=vs.71).aspx

But I am not satisfied and I cannot clearly say what both of them actually are. I want to know:

What exactly is single file assembly? How to create, steps to create, how does it look? What exactly is multifile assembly?How to create, steps to create, how does it look?

解决方案

Basically, a "single-file" assembly is an assembly that has everything contained in one file. This will be a file that has a .DLL or .EXE extension, and is the compiled .NET project. Visual studio creates these from C# projects (either library or application).

With command line compilers, you can split an assembly into multiple parts - where a single assembly's Manifest contains the information required to find information that's part of the assembly, but stored in a separate file. For example, you can keep a resource image (ie: a .bmp) that is a large resource in its own file, so that it isn't necessary to load it just to open the assembly. Creation of multi-file assemblies is not supported by Visual Studio, but these will look like a DLL or EXE, plus zero or more netmodule files, plus zero or more resource files (which can be anything). The main DLL or EXE contains the manifest that specifies where the other files are located. The steps required to build this are detailed in How to: Build a Multifile Assembly.