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.

C#
public BuildItem(string itemName, Microsoft.Build.Framework.ITaskItem taskItem);

Parameters

itemName
String

The Name property of the BuildItem.

taskItem
ITaskItem

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

Remarks

Advertencia

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

.NET Framework 4.8.1 otras versiones
Producto Versiones
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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.

C#
public BuildItem(string itemName, string itemInclude);
C#
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public BuildItem(string itemName, string itemInclude);

Parameters

itemName
String

The Name property of the BuildItem.

itemInclude
String

The Include property of the BuildItem.

Attributes

Remarks

Advertencia

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

.NET Framework 4.8.1 otras versiones
Producto Versiones
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1