System.Web.Compilation.BuildProvider.ReferencedAssemblies Property

Represents the assemblies to compile with the source generated by the build provider.

Syntax

protected ICollection ReferencedAssemblies { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The ASP.NET build environment initializes the collection of assemblies that are available for reference by the build provider. The source code generated by a build provider can use public types in the referenced assemblies. The referenced assembly collection consists of other assemblies built in the ASP.NET application, and assemblies listed in the assemblies element in the configuration file.

If the build provider generates source code that references additional assemblies, the build provider adds the additional assemblies using the AssemblyBuilder.AddAssemblyReference(System.Reflection.Assembly) method. The ASP.NET build environment resolves external types during assembly compilation using both the referenced assemblies added by build providers and the default collection of assemblies available for reference.

The BuildProvider.ReferencedAssemblies collection does not include assemblies that are added for reference by other build providers through the AssemblyBuilder.AddAssemblyReference(System.Reflection.Assembly) method.

Requirements

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