This topic has not yet been rated - Rate this topic

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.

  Name Description
Public property Static member BatchCompilationEnabled Gets or sets a value that indicates whether batch compilation is enabled.
Public property Static member CodeAssemblies Gets a list of assemblies built from the App_Code directory.
Public property Static member TargetFramework Gets the target version of the .NET Framework for the current Web site.
Top
  Name Description
Public method Static member AddReferencedAssembly Adds an assembly to the application's set of referenced assemblies.
Public method Static member CreateCachedFile Creates a cached file.
Public method Static member CreateInstanceFromVirtualPath Processes a file, given its virtual path, and creates an instance of the result.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Static member GetCachedBuildDependencySet(HttpContext, String) Returns a build dependency set for a virtual path if the path is located in the ASP.NET cache.
Public method Static member 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.
Public method Static member GetCompiledAssembly Compiles a file into an assembly using the specified virtual path.
Public method Static member GetCompiledCustomString Compiles a file, given its virtual path, and returns a custom string that the build provider persists in cache.
Public method Static member GetCompiledType Compiles a file, given its virtual path, and returns the compiled type.
Public method Static member GetGlobalAsaxType Gets an object that represents the compiled type for the Global.asax file.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method Static member GetObjectFactory Gets an object factory for the specified virtual path.
Public method Static member GetReferencedAssemblies Returns a list of assembly references that all page compilations must reference.
Public method GetType() Gets the Type of the current instance. (Inherited from Object.)
Public method Static member 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.
Public method Static member 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.
Public method Static member GetVirtualPathDependencies Provides a collection of virtual-path dependencies for a specified virtual path.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member ReadCachedFile Reads a cached file.
Public method ToString Returns 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.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

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.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ