Freigeben über


BuildItem Constructors

Definition

Initializes a new instance of the BuildItem class.

Overloads

BuildItem(String, ITaskItem)

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

This constructor creates a new virtual (non-persisted) item based on a ITaskItem object that was emitted by a task.

BuildItem(String, String)

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

This constructor creates a new virtual (non-persisted) item with the specified type and include.

BuildItem(String, ITaskItem)

Source:
BuildItem.cs

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

This constructor creates a new virtual (non-persisted) item based on a ITaskItem object that was emitted by a task.

public:
 BuildItem(System::String ^ itemName, Microsoft::Build::Framework::ITaskItem ^ taskItem);
public BuildItem (string itemName, Microsoft.Build.Framework.ITaskItem taskItem);
new Microsoft.Build.BuildEngine.BuildItem : string * Microsoft.Build.Framework.ITaskItem -> Microsoft.Build.BuildEngine.BuildItem
Public Sub New (itemName As String, taskItem As ITaskItem)

Parameters

itemName
String

The Name property of the BuildItem.

taskItem
ITaskItem

The ITaskItem from which to create the Include property of the BuildItem.

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

BuildItem(String, String)

Source:
BuildItem.cs

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

This constructor creates a new virtual (non-persisted) item with the specified type and include.

public:
 BuildItem(System::String ^ itemName, System::String ^ itemInclude);
public BuildItem (string itemName, string itemInclude);
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public BuildItem (string itemName, string itemInclude);
new Microsoft.Build.BuildEngine.BuildItem : string * string -> Microsoft.Build.BuildEngine.BuildItem
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
new Microsoft.Build.BuildEngine.BuildItem : string * string -> Microsoft.Build.BuildEngine.BuildItem
Public Sub New (itemName As String, itemInclude As String)

Parameters

itemName
String

The Name property of the BuildItem.

itemInclude
String

The Include property of the BuildItem.

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