Automatic release of Asp.net

Source: Internet
Author: User

First, use msbuild for compilation.

Msbuild mypro. csproj/P: configration = release

Then publish with aspnet_compiler

Example:

Aspnet_compiler-V/deployment-p c: \ Inetpub \ wwwroot \ myprojects \ developer \ deployment c: \ compiled

-V is a virtual directory. You can specify

-P is the solution directory

Targetdir is the target directory of the release, where C: \ compiled

-U, no pre-compilation, so that the pre-compilation will only be performed when the page is accessed for the first time. The page can be modified on the website and will be compiled at the next visit, however, after each modification, the first access speed slows down. If this parameter is not added ,. NO content in pages such as aspx

-F: delete all contents in the directory folder before publishing.

-Fixednames: fixed the DLL name generated on each page during pre-compilation. In this way, a DLL is generated for each page, but this facilitates future update.

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.