BuildManager.AddCompilationDependency(String) 方法
定义
指定表示生成管理器使用的依赖项帮助确定是否需要干净生成的字符串。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 -> unit
Public Shared Sub AddCompilationDependency (dependency As String)
参数
- dependency
- String
一个表示依赖项的字符串。A string that represents a dependency.
例外
dependency 参数为 null 或空字符串。The dependency parameter is null or an empty string.
在此应用程序的 Application_PreStartInit 阶段后调用该方法。The method was called after the Application_PreStartInit stage of the application.
注解
在应用程序的阶段,必须调用方法 Application_PreStartInit 。The method must be called during the Application_PreStartInit stage of the application.