BuildManager Class

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

System.Object
  System.Web.Compilation.BuildManager

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

public sealed class BuildManager

The BuildManager type exposes the following members.

  NameDescription
Public propertyStatic memberBatchCompilationEnabledGets or sets a value that indicates whether batch compilation is enabled.
Public propertyStatic memberCodeAssembliesGets a list of assemblies built from the App_Code directory.
Public propertyStatic memberIsPrecompiledAppGets a value that specifies whether the application is precompiled.
Public propertyStatic memberIsUpdatablePrecompiledAppGets a value that specifies whether the application is precompiled as updatable.
Public propertyStatic memberTargetFrameworkGets the target version of the .NET Framework for the current Web site.
Top

  NameDescription
Public methodStatic memberAddCompilationDependencySpecifies a string that represents a dependency that the build manager uses to help determine if a clean build is required.
Public methodStatic memberAddReferencedAssemblyAdds an assembly to the application's set of referenced assemblies.
Public methodStatic memberCreateCachedFileCreates a cached file.
Public methodStatic memberCreateInstanceFromVirtualPathProcesses a file, given its virtual path, and creates an instance of the result.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodStatic memberGetCachedBuildDependencySet(HttpContext, String)Returns a build dependency set for a virtual path if the path is located in the ASP.NET cache.
Public methodStatic memberGetCachedBuildDependencySet(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.
Public methodStatic memberGetCompiledAssemblyCompiles a file into an assembly using the specified virtual path.
Public methodStatic memberGetCompiledCustomStringCompiles a file, given its virtual path, and returns a custom string that the build provider persists in cache.
Public methodStatic memberGetCompiledTypeCompiles a file, given its virtual path, and returns the compiled type.
Public methodStatic memberGetGlobalAsaxTypeGets an object that represents the compiled type for the Global.asax file.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodStatic memberGetObjectFactoryGets an object factory for the specified virtual path.
Public methodStatic memberGetReferencedAssembliesReturns a list of assembly references that all page compilations must reference.
Public methodGetType()Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberGetType(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.
Public methodStatic memberGetType(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.
Public methodStatic memberGetVirtualPathDependenciesProvides a collection of virtual-path dependencies for a specified virtual path.
Public methodStatic memberReadCachedFileReads a cached file.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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.

TopicLocation
How To: Secure an ASP.NET Application on a Shared ServerBuilding ASP .NET Web Applications
How To: Secure an ASP.NET Application on a Shared ServerBuilding ASP .NET Web Applications

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft