BuildManager BuildManager BuildManager BuildManager Class

定义

提供一组有助于管理 ASP.NET 应用程序编译的方法。Provides a set of methods to help manage the compilation of an ASP.NET application.

public ref class BuildManager sealed
public sealed class BuildManager
type BuildManager = class
Public NotInheritable Class BuildManager
继承
BuildManagerBuildManagerBuildManagerBuildManager

注解

BuildManager类管理应用程序的程序集和页面的编译过程。The BuildManager class manages the process of compiling assemblies and pages for an application. 它是一个密封类,不能被继承。It is a sealed class and cannot be inherited.

BuildManager包含提供有关编译的程序集的信息的静态成员。BuildManager contains static members that provide information about the compiled assemblies.

属性

BatchCompilationEnabled BatchCompilationEnabled BatchCompilationEnabled BatchCompilationEnabled

获取或设置指示是否启用批处理编译的值。Gets or sets a value that indicates whether batch compilation is enabled.

CodeAssemblies CodeAssemblies CodeAssemblies CodeAssemblies

获取从 App_Code 目录生成的程序集的列表。Gets a list of assemblies built from the App_Code directory.

IsPrecompiledApp IsPrecompiledApp IsPrecompiledApp IsPrecompiledApp

获取一个指定应用程序是否编译的值。Gets a value that specifies whether the application is precompiled.

IsUpdatablePrecompiledApp IsUpdatablePrecompiledApp IsUpdatablePrecompiledApp IsUpdatablePrecompiledApp

获取一个指定应用程序是否编译为可更新的值。Gets a value that specifies whether the application is precompiled as updatable.

TargetFramework TargetFramework TargetFramework TargetFramework

获取当前网站的 .NET Framework 的目标版本。Gets the target version of the .NET Framework for the current Web site.

方法

AddCompilationDependency(String) AddCompilationDependency(String) AddCompilationDependency(String) AddCompilationDependency(String)

指定表示生成管理器使用的依赖项帮助确定是否需要干净生成的字符串。Specifies a string that represents a dependency that the build manager uses to help determine if a clean build is required.

AddReferencedAssembly(Assembly) AddReferencedAssembly(Assembly) AddReferencedAssembly(Assembly) AddReferencedAssembly(Assembly)

将一个程序集添加到应用程序所引用的一组程序集中。Adds an assembly to the application's set of referenced assemblies.

CreateCachedFile(String) CreateCachedFile(String) CreateCachedFile(String) CreateCachedFile(String)

创建一个缓存文件。Creates a cached file.

CreateInstanceFromVirtualPath(String, Type) CreateInstanceFromVirtualPath(String, Type) CreateInstanceFromVirtualPath(String, Type) CreateInstanceFromVirtualPath(String, Type)

处理给定了虚拟路径的文件,并创建结果的实例。Processes a file, given its virtual path, and creates an instance of the result.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetCachedBuildDependencySet(HttpContext, String) GetCachedBuildDependencySet(HttpContext, String) GetCachedBuildDependencySet(HttpContext, String) GetCachedBuildDependencySet(HttpContext, String)

如果虚拟路径位于 ASP.NET 缓存中,则为虚拟路径返回生成依赖项集。Returns a build dependency set for a virtual path if the path is located in the ASP.NET cache.

GetCachedBuildDependencySet(HttpContext, String, Boolean) GetCachedBuildDependencySet(HttpContext, String, Boolean) GetCachedBuildDependencySet(HttpContext, String, Boolean) GetCachedBuildDependencySet(HttpContext, String, Boolean)

如果虚拟路径位于 ASP.NET 缓存中,则为虚拟路径返回生成依赖项集,即使内容不是最新也是如此。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(String) GetCompiledAssembly(String) GetCompiledAssembly(String) GetCompiledAssembly(String)

使用指定虚拟路径将文件编译为程序集。Compiles a file into an assembly using the specified virtual path.

GetCompiledCustomString(String) GetCompiledCustomString(String) GetCompiledCustomString(String) GetCompiledCustomString(String)

编译给定了虚拟路径的文件,并返回生成提供程序保存在缓存中的自定义字符串。Compiles a file, given its virtual path, and returns a custom string that the build provider persists in cache.

GetCompiledType(String) GetCompiledType(String) GetCompiledType(String) GetCompiledType(String)

编译给定了虚拟路径的文件,并返回编译类型。Compiles a file, given its virtual path, and returns the compiled type.

GetGlobalAsaxType() GetGlobalAsaxType() GetGlobalAsaxType() GetGlobalAsaxType()

获取表示 Global.asax 文件编译的类型的对象。Gets an object that represents the compiled type for the Global.asax file.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetObjectFactory(String, Boolean) GetObjectFactory(String, Boolean) GetObjectFactory(String, Boolean) GetObjectFactory(String, Boolean)

为指定虚拟路径获取对象工厂。Gets an object factory for the specified virtual path.

GetReferencedAssemblies() GetReferencedAssemblies() GetReferencedAssemblies() GetReferencedAssemblies()

返回所有页编译都必须引用的程序集引用的列表。Returns a list of assembly references that all page compilations must reference.

GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
GetType(String, Boolean) GetType(String, Boolean) GetType(String, Boolean) 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) GetType(String, Boolean, Boolean) GetType(String, Boolean, Boolean) 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(String) GetVirtualPathDependencies(String) GetVirtualPathDependencies(String) GetVirtualPathDependencies(String)

为指定虚拟路径提供虚拟路径依赖项的集合。Provides a collection of virtual-path dependencies for a specified virtual path.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ReadCachedFile(String) ReadCachedFile(String) ReadCachedFile(String) ReadCachedFile(String)

读取一个缓存文件。Reads a cached file.

ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

适用于

另请参阅