Pre-compile the ASP. NET Website for deployment

Source: Internet
Author: User


Pre-compile the ASP. NET Website for deployment

  1. Open a command window and navigate to a folder containing. NET Framework.

    . NET Framework will be installed in the following locations.

    %windir%/Microsoft.NET/Framework/version
  2. RunAspnet_compilerCommand, enter the following content in the command prompt, specify the Source Path (as the virtual path or physical path), and compile the target folder of the website.

    aspnet_compiler -v virtualPathtargetPath

    If the website is not an Internet Information Service (IIS) Application and there is no entry in the IIS metadatabase-VThe switch uses the following values.

    aspnet_compiler -p physicalOrRelativePath -v / targetPath

    In this case,PhysicalorrelativepathThe parameter refers to the fully qualified directory path of the website file or the path relative to the current directory. InPhysicalorrelativepathThe period (.) Operator.-VSwitch to specify a root directory, the compiler will use this directory to parse the application root directory reference, for example, with the font size (~) Operator. When you-VSwitch Value/The compiler uses the physical path as the root directory to parse the path.

    TargetpathThe parameter is the physical path of the target directory.

Pre-compile the ASP. NET Website for deployment and updates
  1. Open a command window and navigate to a folder containing. NET Framework.

    . NET Framework will be installed in the following locations.

    %windir%/Microsoft.NET/Framework/version
  2. RunAspnet_compilerCommand, enter the following content in the command prompt, specify the source (as the virtual path or physical path), compile the target folder of the website, and-USwitch (this switch indicates that you want to compile the site for deployment and update ).

    aspnet_compiler -p physicalOrRelativePath -v / targetPath -u
    Http://msdn.microsoft.com/zh-cn/library/ms227976 (V = vs.80). aspx

 

Related Article

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.