BuildManager Class

BuildManager Class

 

Provides a set of methods to help manage the compilation of an ASP.NET application.

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

System.Object
  System.Web.Compilation.BuildManager

public sealed class BuildManager

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticBatchCompilationEnabled

Gets or sets a value that indicates whether batch compilation is enabled.

System_CAPS_pubpropertySystem_CAPS_staticCodeAssemblies

Gets a list of assemblies built from the App_Code directory.

System_CAPS_pubpropertySystem_CAPS_staticIsPrecompiledApp

Gets a value that specifies whether the application is precompiled.

System_CAPS_pubpropertySystem_CAPS_staticIsUpdatablePrecompiledApp

Gets a value that specifies whether the application is precompiled as updatable.

System_CAPS_pubpropertySystem_CAPS_staticTargetFramework

Gets the target version of the .NET Framework for the current Web site.

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAddCompilationDependency(String)

Specifies a string that represents a dependency that the build manager uses to help determine if a clean build is required.

System_CAPS_pubmethodSystem_CAPS_staticAddReferencedAssembly(Assembly)

Adds an assembly to the application's set of referenced assemblies.

System_CAPS_pubmethodSystem_CAPS_staticCreateCachedFile(String)

Creates a cached file.

System_CAPS_pubmethodSystem_CAPS_staticCreateInstanceFromVirtualPath(String, Type)

Processes a file, given its virtual path, and creates an instance of the result.

System_CAPS_pubmethodEquals(Object)

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

System_CAPS_pubmethodSystem_CAPS_staticGetCachedBuildDependencySet(HttpContext, String)

Returns a build dependency set for a virtual path if the path is located in the ASP.NET cache.

System_CAPS_pubmethodSystem_CAPS_staticGetCachedBuildDependencySet(HttpContext, String, Boolean)

Returns a build dependency set for a virtual path if the path is located in the ASP.NET cache, even if the content is not current.

System_CAPS_pubmethodSystem_CAPS_staticGetCompiledAssembly(String)

Compiles a file into an assembly using the specified virtual path.

System_CAPS_pubmethodSystem_CAPS_staticGetCompiledCustomString(String)

Compiles a file, given its virtual path, and returns a custom string that the build provider persists in cache.

System_CAPS_pubmethodSystem_CAPS_staticGetCompiledType(String)

Compiles a file, given its virtual path, and returns the compiled type.

System_CAPS_pubmethodSystem_CAPS_staticGetGlobalAsaxType()

Gets an object that represents the compiled type for the Global.asax file.

System_CAPS_pubmethodGetHashCode()

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

System_CAPS_pubmethodSystem_CAPS_staticGetObjectFactory(String, Boolean)

Gets an object factory for the specified virtual path.

System_CAPS_pubmethodSystem_CAPS_staticGetReferencedAssemblies()

Returns a list of assembly references that all page compilations must reference.

System_CAPS_pubmethodGetType()

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

System_CAPS_pubmethodSystem_CAPS_staticGetType(String, Boolean)

Finds a type in the top-level assemblies or in assemblies that are defined in configuration, and optionally throws an exception on failure.

System_CAPS_pubmethodSystem_CAPS_staticGetType(String, Boolean, Boolean)

Finds a type in the top-level assemblies, or in assemblies that are defined in configuration, by using a case-insensitive search and optionally throwing an exception on failure.

System_CAPS_pubmethodSystem_CAPS_staticGetVirtualPathDependencies(String)

Provides a collection of virtual-path dependencies for a specified virtual path.

System_CAPS_pubmethodSystem_CAPS_staticReadCachedFile(String)

Reads a cached file.

System_CAPS_pubmethodToString()

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

The BuildManager class manages the process of compiling assemblies and pages for an application. It is a sealed class and cannot be inherited.

BuildManager contains static members that provide information about the compiled assemblies.

.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