This documentation is archived and is not being maintained.

BuildProvider::ReferencedAssemblies Property

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

Namespace:  System.Web.Compilation
Assembly:  System.Web (in System.Web.dll)

protected:
property ICollection^ ReferencedAssemblies {
	ICollection^ get ();
}

Property Value

Type: System.Collections::ICollection
A read-only collection of assemblies that can be referenced by the source code generated by the build provider.

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 AddAssemblyReference 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 ReferencedAssemblies collection does not include assemblies that are added for reference by other build providers through the AddAssemblyReference method.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: