VSWebSite.PreCompileWeb Method

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

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

Syntax

'Declaration
Function PreCompileWeb ( _
    bstrCompilePath As String, _
    bUpdateable As Boolean _
) As Boolean
bool PreCompileWeb(
    string bstrCompilePath,
    bool bUpdateable
)
bool PreCompileWeb(
    [InAttribute] String^ bstrCompilePath, 
    [InAttribute] bool bUpdateable
)
abstract PreCompileWeb : 
        bstrCompilePath:string * 
        bUpdateable:bool -> bool 
function PreCompileWeb(
    bstrCompilePath : String, 
    bUpdateable : boolean
) : 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.

.NET Framework Security

See Also

Reference

VSWebSite Interface

VsWebSite Namespace

EnvDTE

Other Resources

Referencing Automation Assemblies and the DTE2 Object

ASP.NET Web Site Precompilation Overview