You can create multifile assemblies using command-line compilers or Visual Studio 2005 with Visual C++. One file in the assembly must contain the assembly manifest. An assembly that starts an application must also contain an entry point, such as a Main or WinMain method.
For example, suppose you have an application that contains two code modules, Client.cs and Stringer.cs. Stringer.cs creates the myStringer namespace that is referenced by the code in Client.cs. Client.cs contains the Main method, which is the application's entry point. In this example, you compile the two code modules, and then create a third file that contains the assembly manifest, which launches the application. The assembly manifest references both the Client and Stringer modules.
你可以使用命令行编译器或 带有 Visual C++ 的Visual Studio 2005创建多文件的程序集,程序集的一个文件必须包含程序集清单. 一个应用程序的开始程序集必须包含入口. 比如说Main 或 WinMain 方法.比如,假设你有一个应用程序.她包含了两个模块,Client.cs 和 Stringer.cs. Stringer.cs 创建了 在Client.cs中代码引用的命名空间myStringer. Client.cs 包含了程序的入口Main 方法. 在这个例子中,你编译两个模块,和第三个文件-- 程序集清单文件.它启动应用程序. 程序集清单,引用Client 和 Stringer 模块.
manifest 卸货单 旅客单,launches 发动,发起
There are several reasons you might want to create a multifile assembly:
-
To combine modules written in different languages. This is the most common reason for creating a multifile assembly.
-
To optimize downloading an application by putting seldom-used types in a module that is downloaded only when needed.
您可能有以下几个原因而创多文件建程序集:
整合多中语言写的模块.这是最常见的创建多文件程序集的理由.
优化应用程序的下载通过把很少用到的类型.放到只有需要是才下载的模块中.
If you are creating applications that will be downloaded using the <object> tag with Microsoft Internet Explorer, it is important that you create multifile assemblies. In this scenario, you create a file separate from your code modules that contains only the assembly manifest. Internet Explorer downloads the assembly manifest first, and then creates worker threads to download any additional modules or assemblies required. While the file containing the assembly manifest is being downloaded, Internet Explorer will be unresponsive to user input. The smaller the file containing the assembly manifest, the less time Internet Explorer will be unresponsive.
如果你创建了用Microsoft Internet Explorer 通过<object> 标签下载的一个应用程序.创建多文件程序集,对您来说是重要的.假定.你创建了一个从你的代码模块中分离出来的只带有程序集清单的文件. IE 首先下载 带有程序集清单的程序集. 然后创建一个工作进程.来下载额外的模块. 或需要的程序集. 当含有程序集清单的文件正在被下载是 浏览器对用户的输入是不响应的. 包含程序集清单的文件越小,IE 不响应的时间就越短.
scinario 剧本,情节,游戏的关.