Project.AddNewUsingTaskFromAssemblyFile(String, String) 方法

定义

使用指定的程序集文件添加新的 UsingTask 元素。Adds a new UsingTask element with the specified assembly file.

public:
 void AddNewUsingTaskFromAssemblyFile(System::String ^ taskName, System::String ^ assemblyFile);
public void AddNewUsingTaskFromAssemblyFile (string taskName, string assemblyFile);
member this.AddNewUsingTaskFromAssemblyFile : string * string -> unit
Public Sub AddNewUsingTaskFromAssemblyFile (taskName As String, assemblyFile As String)

参数

taskName
String

要从程序集中引用的任务的名称。The name of the task to reference from the assembly. UsingTask 元素的 TaskName 属性相对应。Corresponds to the TaskName attribute of the UsingTask element.

assemblyFile
String

程序集的文件路径。The file path to the assembly. UsingTask 元素的 AssemblyFile 属性相对应。Corresponds to the AssemblyFile attribute of the UsingTask element.

适用于