web.config batch=“false”

后端 未结 4 1968
灰色年华
灰色年华 2021-02-07 02:20

What is the purpose of adding the batch=\"false\" in the compilation tag in ASP.NET 1.1?

4条回答
  •  耶瑟儿~
    2021-02-07 02:39

    In asp.net 1.1, when you compile in "batch mode" set to true, the output of the source files is compiled into single assemblies according to the directories, the type of file, etc. When "batch mode" is turned off, the output is a single assembly for the entire project.

    Some of the advantages and disadvantages are described in this small paragraph from an MSDN article.

    There are several issues you should be aware of when using this attribute.

    • Performance—when Batch=false, the ASP.NET compiler will create an assembly for every Web form and user control in your Web application. It also causes the compiler to do a full compile, not an incremental compile, in Visual Studio 2005 when you build using F5. The net result is your Web application may run slower when deployed, and your build times will increase significantly in Visual Studio 2005.
    • Assembly References—the Batch attribute may hide potential broken assembly references (when Batch=True), or even introduce a Circular Reference (when Batch=False).

提交回复
热议问题