Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ProjectInstance.AddItem Method (String, String)

Adds an item with no metadata to the project.

Namespace:  Microsoft.Build.Execution
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

member AddItem : 
        itemType:string * 
        evaluatedInclude:string -> ProjectItemInstance


Type: System.String

The item type of the item to be added.

Type: System.String

The evaluated Include attribute of the item.

Return Value

Type: Microsoft.Build.Execution.ProjectItemInstance
Returns the new item.

We don't take a ProjectItemInstance to make sure we don't have one that's already in use by another ProjectInstance.

.NET Framework

Supported in: 4.6, 4.5, 4
© 2015 Microsoft