ASP. net2.0 program released

Source: Internet
Author: User
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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.