BuildManager.AddCompilationDependency(String) Method

Definition

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

C#
public static void AddCompilationDependency(string dependency);

Parameters

dependency
String

A string that represents a dependency.

Exceptions

The dependency parameter is null or an empty string.

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

Remarks

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

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1