Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

BuildManager.AddCompilationDependency Method

.NET Framework 4.6 and 4.5

Specifies a string that represents a dependency that the build manager uses to help determine if a clean build is required.

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

public static void AddCompilationDependency(
	string dependency
)

Parameters

dependency
Type: System.String

A string that represents a dependency.

ExceptionCondition
ArgumentException

The dependency parameter is null or an empty string.

InvalidOperationException

The method was called after the Application_PreStartInit stage of the application.

The method must be called during the Application_PreStartInit stage of the application.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft