Share via


VSWebSite.PreCompileWeb Method (String, Boolean)

 

Compiles the Web site and writes the compiled output to the specified folder.

Namespace:   VsWebSite
Assembly:  VsWebSite.Interop (in VsWebSite.Interop.dll)

Syntax

bool PreCompileWeb(
    string bstrCompilePath,
    bool bUpdateable
)
bool PreCompileWeb(
    String^ bstrCompilePath,
    bool bUpdateable
)
abstract PreCompileWeb : 
        bstrCompilePath:string *
        bUpdateable:bool -> bool
Function PreCompileWeb (
    bstrCompilePath As String,
    bUpdateable As Boolean
) As Boolean

Parameters

  • bstrCompilePath
    Type: System.String

    The local file system path of the folder where the compiled Web site will be written.

  • bUpdateable
    Type: System.Boolean

    A flag indicating whether the Web site is updatable or whether it requires recompilation when an .aspx file is changed.

Return Value

Type: System.Boolean

true if the compilation was successful; otherwise false.

Remarks

This method compiles the site synchronously.

See Also

EnvDTE
VSWebSite Interface
VsWebSite Namespace
Referencing Automation Assemblies and the DTE2 Object
NIB: ASP.NET Web Site Precompilation Overview

Return to top