Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The following command duplicates the <em>Publish Web Site</em> dialog with default settings.</p> <h2>Command for Publish Web Site with Default Settings</h2> <p><code>aspnet_compiler -nologo -v / -p "C:\WebSite1" -u "C:\TargetPath"</code></p> <h3>Reference</h3> <p>1) See <em>Community Content</em> titled <em>You want Publish a site but you have not Visual Studio then...</em> at <a href="http://msdn.microsoft.com/en-us/library/20yh9f1b(classic).aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/20yh9f1b(classic).aspx</a>.</p> <ul> <li>Microsoft Visual Studio 2005 > Visual Studio 2005 Command Prompt </li> <li>Microsoft Visual Studio 2008 > Visual Studio 2008 Command Prompt</li> <li>Microsoft .NET Framework SDK v2.0 > SDK Command Prompt</li> </ul> <p>2) See "ASP.NET Compilation Tool (Aspnet_compiler.exe)" at <a href="http://msdn.microsoft.com/en-us/library/ms229863.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/ms229863.aspx</a>.</p> <p>3) Following excerpt from <em>Walkthrough: Deploying an ASP.NET Web Application Using XCOPY</em> at <a href="http://msdn.microsoft.com/en-us/library/f735abw9.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/f735abw9.aspx</a></p> <blockquote> <p>As an alternative to using the XCOPY command-line tool, which is supported by all versions of the .NET Framework, you can use the new .NET Framework 2.0 tool located at %SystemRoot%\Microsoft.NET\Framework\<em>version 2 or later</em>\Aspnet_compiler.exe to compile and deploy your Web application. For more information, see <a href="http://msdn.microsoft.com/en-us/library/ms229863.aspx" rel="noreferrer">ASP.NET Compilation Tool (Aspnet_compiler.exe)</a>.</p> </blockquote> <p>4) Following excerpt from <em>How to: Precompile ASP.NET Web Sites for Deployment</em> at <a href="http://msdn.microsoft.com/en-us/library/ms227976.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/ms227976.aspx</a>.</p> <blockquote> <p>If your Web site is not an Internet Information Services (IIS) application and therefore has no entry in the IIS metabase, used the following value for the -v switch.</p> <p><code>aspnet_compiler -p physicalOrRelativePath -v / targetPath</code></p> <p>In this case, the physicalOrRelativePath parameter refers to the fully qualified directory path in which the Web site files are located, or a path relative to the current directory. The period (.) operator is allowed in the physicalOrRelativePath parameter. The -v switch specifies a root that the compiler will use to resolve application-root references (for example, with the tilde (~) operator). When you specify the value of / for the -v switch the compiler will resolve the paths using the physical path as the root.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload