Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RemoveItem Method

ProjectInstance.RemoveItem Method

Removes an item from the project, if present. Returns true if it was present, false otherwise.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

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

public bool RemoveItem(
	ProjectItemInstance item


Type: Microsoft.Build.Execution.ProjectItemInstance

The item to be removed.

Return Value

Type: System.Boolean
Returns true if the item was present before removal; false otherwise.

© 2015 Microsoft