Pre-compile the ASP. NET Website for deployment
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
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
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
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