Two release methods are introduced here.
1: UseCopysiteFunction.
In fact, it is still an xcopy, that is, it has more functions such as Synchronizing files/connecting to sites. Still put allSource codeReleased together
2: UsePre-compilation and deployment
This is another extreme: Only DLL files are released, and there is no sourceCodeOr even HTML code.
Usage: Open the command prompt of ASP. net2.0 SDK or find the Windows/miscorsoft.net/framework/v2.0/directory to start running aspnet_compiler.exe. ThisProgramYou can perform pre-compilation. Aspnet_compiler.exe -? The help of this command is displayed.
This document introduces a format: aspnet_compiler-V/<websitename>-P <source> <destination>
For example, aspnet_compiler-V/form. UI. web-p c: \ websites \ form. UI. web c: \ websites \ deployment this command calls the virtual directory name form. UI. the Web is located in c: \ websites \ form. UI. programs in the web directory are pre-compiled to the C: \ websites \ deployment directory.
After compilation:
1: All. aspx pages are like this:
This is a marker file generated by the precompilation tool, and shocould not be deleted!
This file is only used to mark its existence and can be accessed through IIS. All its content has been compiled into the DLL, and there is a default under the bin directory. aspx. cdcab7d2. compiled file exists
2: All the ascx controls "disappear". At the same time, there are many. compiled files in the bin. The content of one of the files is as follows:
<Preserve resulttype = "3" virtualpath = "/form. UI. web/configfiles/IPS/informationcreate. ascx "hash =" bdca4e266 "filehash =" 1879aaf63513 "Flags =" 10000 "assembly =" app_web_x_lehwbd "type =" ASP. informationcreate_ascx ">
<Filedeps>
<Filedep name = "/form. UI. Web/configfiles/IPS/informationcreate. ascx"/>
</Filedeps>
</Preserve>
That is to say, during execution, the file will be read from the Assembly according to the declaration here.
At first, I was worried that the Code calling ascx in me would fail, because I was always using control. Load (PATH). If there is no ascx file, wouldn't I load it? It seems to be worrying, and there is no problem.
3: The resource file is similar to the previous one. It is compiled into several sub-directories under the bin directory, such as Zn-ch.
4: The Global, masterpage, and theme files are similar. files such as app_global.asax.compiled, default01.master. 28fa1680. compiled, and theme_defatheme.compiled appear.