SALES: 1-800-867-1380
Microsoft Azure
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ClientBuildManager Class

 

Provides compilation services for ASP.NET applications.

Namespace:   System.Web.Compilation
Assembly:  System.Web (in System.Web.dll)

System.Object
  System.MarshalByRefObject
    System.Web.Compilation.ClientBuildManager

[PermissionSetAttribute(SecurityAction.LinkDemand, Unrestricted = true)]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Unrestricted = true)]
public sealed class ClientBuildManager : MarshalByRefObject, 
	IDisposable

NameDescription
System_CAPS_pubmethodClientBuildManager(String, String)

Initializes a new instance of the ClientBuildManager class without a specified target directory or precompilation flags.

System_CAPS_pubmethodClientBuildManager(String, String, String)

Initializes a new instance of the ClientBuildManager class with the specified target directory.

System_CAPS_pubmethodClientBuildManager(String, String, String, ClientBuildManagerParameter)

Initializes a new instance of the ClientBuildManager class with the specified target directory and compilation parameter.

System_CAPS_pubmethodClientBuildManager(String, String, String, ClientBuildManagerParameter, TypeDescriptionProvider)

Initializes a new instance of the ClientBuildManager class by using the specified virtual directory, source directory, target directory, compilation parameter, and type-description provider.

NameDescription
System_CAPS_pubpropertyCodeGenDir

Gets the physical path to the directory used for code generation.

System_CAPS_pubpropertyIsHostCreated

Gets a value that indicates whether an application domain for compiling ASP.NET Web applications has been created.

NameDescription
System_CAPS_pubmethodCompileApplicationDependencies()

Compiles application-dependent files, such as files in the App_Code directory, the Global.asax file, resource files, and Web references.

System_CAPS_pubmethodCompileFile(String)

Compiles the file represented by the virtual path.

System_CAPS_pubmethodCompileFile(String, ClientBuildManagerCallback)

Compiles the file represented by the virtual path and provides a callback class to receive status information about the build.

System_CAPS_pubmethodCreateObject(Type, Boolean)

Creates an object in the application domain of the ASP.NET runtime.

System_CAPS_pubmethodCreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGenerateCode(String, String, IDictionary)

Generates code from the contents of a file.

System_CAPS_pubmethodGenerateCodeCompileUnit(String, String, Type, CompilerParameters, IDictionary)

Returns the contents, codeDOM tree, compiler type, and compiler parameters for a file represented by a virtual path.

System_CAPS_pubmethodGenerateCodeCompileUnit(String, Type, CompilerParameters, IDictionary)

Returns the codeDOM tree, compiler type, and compiler parameters for a file represented by a virtual path.

System_CAPS_pubmethodGetAppDomainShutdownDirectories()

Gets the directories with files that, when changed, cause the application domain to shut down.

System_CAPS_pubmethodGetBrowserDefinitions()

Gets a collection of browser elements.

System_CAPS_pubmethodGetCodeDirectoryInformation(String, Type, CompilerParameters, String)

Gets information about the compiler type, compiler parameters, and the directory in which to store code files generated from non-code files such as .wsdl files.

System_CAPS_pubmethodGetCompiledType(String)

Compiles the file represented by the virtual path and returns its compiled type.

System_CAPS_pubmethodGetCompilerParameters(String, Type, CompilerParameters)

Returns the compiler type and parameters that are used to build a file represented by a virtual path.

System_CAPS_pubmethodGetGeneratedFileVirtualPath(String)

Returns the virtual path of a generated file.

System_CAPS_pubmethodGetGeneratedSourceFile(String)

Gets the physical path to the generated file for a virtual path.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodGetTopLevelAssemblyReferences(String)

Returns an array of the assemblies defined in the Bin directory and the <assembly> section of the Web configuration file.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodGetVirtualCodeDirectories()

Returns the virtual paths to the App_Code directory and its subdirectories in an ASP.NET application.

System_CAPS_pubmethodInitializeLifetimeService()

Gives the application domain an infinite lifetime by preventing a lease from being created.(Overrides MarshalByRefObject.InitializeLifetimeService().)

System_CAPS_pubmethodIsCodeAssembly(String)

Indicates whether an assembly is a code assembly.

System_CAPS_pubmethodPrecompileApplication()

Precompiles an ASP.NET application.

System_CAPS_pubmethodPrecompileApplication(ClientBuildManagerCallback)

Precompiles an ASP.NET application and provides a callback method to receive status information about the build.

System_CAPS_pubmethodPrecompileApplication(ClientBuildManagerCallback, Boolean)

Precompiles an ASP.NET application, provides a callback method to receive status information about the build, and indicates whether to create a clean build.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodUnload()

Unloads the application domain for compiling ASP.NET Web applications.

NameDescription
System_CAPS_pubeventAppDomainShutdown

Occurs when an application domain is shut down.

System_CAPS_pubeventAppDomainStarted

Occurs when an application domain is started.

System_CAPS_pubeventAppDomainUnloaded

Occurs when an application domain is unloaded.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIDisposable.Dispose()

Terminates the current ASP.NET application.

The ClientBuildManager class offers methods and properties for compiling ASP.NET Web applications, and retrieving the generated assemblies or generated source code. Instances of the class are established in the client's application domain and provide access to the ASP.NET build system outside of Microsoft Internet Information Services (IIS). The class can be used to develop customized tools for compiling Web applications.

The command-line tool aspnet_compiler uses the ClientBuildManager class.

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft