menu

秋梦无痕

一场秋雨无梦痕,春夜清风冻煞人。冬来冷水寒似铁,夏至京北蟑满城。

Avatar

aspnet_compiler

C:\WINDOWS\Microsoft.NET\Framework\v1.2.30703>aspnet_compiler.exe /?
Utility to precompile an ASP.NET application
Copyright (C) Microsoft Corporation 2001-2003. All rights reserved.

Usage: aspnet_compiler [-?] [-m metabasePath | -v virtualPath [-p physicalDir]] [targetDir]

-? Prints this help text.
-m The full IIS metabase path of the application.
This switch cannot be combined with the -v or -p switches.
-v The virtual path of the application to be compiled (e.g. "/MyApp").
If -p is specified, the physical path is used to locate the application.
Otherwise, the IIS metabase is used, and the application is assumed to be in the default site (under "/LM/W3SVC/1/Root").
This switch cannot be combined with the -m switch.
-p The physical path of the application to be compiled.
If -p is missing, the IIS metabase is used to locate the app.
targetDir The physical path to which the application is compiled.
If not specified, the application is precompiled in-place.

Examples:

The following two commands are equivalent, and rely on the IIS metabase. The compiled application is deployed to c:\MyTarget:
aspnet_compiler -m /LM/W3SVC/1/Root/MyApp c:\MyTarget
aspnet_compiler -v /MyApp c:\MyTarget

The following command compiles the application /MyApp in-place. The effect is that no more compilations will be needed when HTTP requests are sent to it:
aspnet_compiler -v /MyApp c:\MyTarget

The following command does *not* rely on the IIS metabase, as it explicitly specifies the physical source directory of the application:
aspnet_compiler -v /MyApp -p c:\myapp c:\MyTarget

评论已关闭