System.Web.Compilation.AssemblyBuilder Class

Provides a container for building an assembly from one or more virtual paths within an ASP.NET project.

See Also: AssemblyBuilder Members

Syntax

public class AssemblyBuilder

Remarks

Instances of the System.Web.Compilation.AssemblyBuilder class are used with System.Web.Compilation.BuildProvider class methods to build one or more files into a compiled assembly.

The System.Web.Compilation.BuildProvider class defines build functionality for individual files, and the System.Web.Compilation.AssemblyBuilder class combines the source code contributed by each System.Web.Compilation.BuildProvider instance into a single assembly. The ASP.NET build environment passes an System.Web.Compilation.AssemblyBuilder object to the System.Web.Compilation.BuildProvider methods when building an assembly from one or more files, so that each System.Web.Compilation.BuildProvider instance can contribute source code for its file to the overall assembly.

The ASP.NET build environment determines the language and compiler required by files within the project, based on the BuildProvider.CodeCompilerType property. The build environment groups files based on their compiler settings and builds an assembly from files that require the same compiler.

The AssemblyBuilder.CodeDomProvider property indicates the System.CodeDom.Compiler.CodeDomProvider implementation that the ASP.NET build environment uses to compile an assembly from the source code contributed by each System.Web.Compilation.BuildProvider implementation.

A System.Web.Compilation.BuildProvider object contributes source code in the form of a CodeDOM graph using the AssemblyBuilder.AddCodeCompileUnit(BuildProvider, System.CodeDom.CodeCompileUnit) method. A System.Web.Compilation.BuildProvider object contributes source code stored in a physical file using the AssemblyBuilder.CreateCodeFile(BuildProvider) method.

After each System.Web.Compilation.BuildProvider object contributes source code using the appropriate System.Web.Compilation.AssemblyBuilder methods, the ASP.NET build environment uses the System.Web.Compilation.AssemblyBuilder class to compile the collected source code into an assembly.

Requirements

Namespace: System.Web.Compilation
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0