This documentation is archived and is not being maintained.
BuildManager Class
Visual Studio 2010
Provides a set of methods to help manage the compilation of an ASP.NET application.
Assembly: System.Web (in System.Web.dll)
The BuildManager type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | BatchCompilationEnabled | Gets or sets a value that indicates whether batch compilation is enabled. |
![]() ![]() | CodeAssemblies | Gets a list of assemblies built from the App_Code directory. |
![]() ![]() | TargetFramework | Gets the target version of the .NET Framework for the current Web site. |
| Name | Description | |
|---|---|---|
![]() ![]() | AddReferencedAssembly | Adds an assembly to the application's set of referenced assemblies. |
![]() ![]() | CreateCachedFile | Creates a cached file. |
![]() ![]() | CreateInstanceFromVirtualPath | Processes a file, given its virtual path, and creates an instance of the result. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | GetCachedBuildDependencySet(HttpContext, String) | Returns a build dependency set for a virtual path if the path is located in the ASP.NET cache. |
![]() ![]() | GetCachedBuildDependencySet(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. |
![]() ![]() | GetCompiledAssembly | Compiles a file into an assembly using the specified virtual path. |
![]() ![]() | GetCompiledCustomString | Compiles a file, given its virtual path, and returns a custom string that the build provider persists in cache. |
![]() ![]() | GetCompiledType | Compiles a file, given its virtual path, and returns the compiled type. |
![]() ![]() | GetGlobalAsaxType | Gets an object that represents the compiled type for the Global.asax file. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() ![]() | GetObjectFactory | Gets an object factory for the specified virtual path. |
![]() ![]() | GetReferencedAssemblies | Returns a list of assembly references that all page compilations must reference. |
![]() | GetType() | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | GetType(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. |
![]() ![]() | GetType(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. |
![]() ![]() | GetVirtualPathDependencies | Provides a collection of virtual-path dependencies for a specified virtual path. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | ReadCachedFile | Reads a cached file. |
![]() | ToString | 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.
| Topic | Location |
|---|---|
| How To: Secure an ASP.NET Application on a Shared Server | Building ASP .NET Web Applications |
| How To: Secure an ASP.NET Application on a Shared Server | Building ASP .NET Web Applications |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:



