共用方式為


BuildTask.AddOutputItem(String, String) Method

Definition

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Adds an Output tag to this task element

public:
 void AddOutputItem(System::String ^ taskParameter, System::String ^ itemName);
public void AddOutputItem (string taskParameter, string itemName);
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public void AddOutputItem (string taskParameter, string itemName);
member this.AddOutputItem : string * string -> unit
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.AddOutputItem : string * string -> unit
Public Sub AddOutputItem (taskParameter As String, itemName As String)

Parameters

taskParameter
String
itemName
String
Attributes

Remarks

Warning

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.Construction Microsoft.Build.Evaluation Microsoft.Build.Execution

Applies to