BuildManager.AddCompilationDependency(String) Method    
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies a string that represents a dependency that the build manager uses to help determine if a clean build is required.
public:
 static void AddCompilationDependency(System::String ^ dependency);public static void AddCompilationDependency(string dependency);static member AddCompilationDependency : string -> unitPublic Shared Sub AddCompilationDependency (dependency As String)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.