10 references to Remove
Microsoft.Build (10)
Construction\ProjectItemElement.cs (4)
105
ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || (
Remove
.Length == 0 && Update.Length == 0), "OM_OneOfAttributeButNotMore", ElementName, XMakeAttributes.include, XMakeAttributes.remove, XMakeAttributes.update);
127
ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) ||
Remove
.Length == 0, "OM_EitherAttributeButNotBoth", ElementName, XMakeAttributes.exclude, XMakeAttributes.remove);
168
ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || (
Remove
.Length == 0 && Include.Length == 0), "OM_OneOfAttributeButNotMore", ElementName, XMakeAttributes.include, XMakeAttributes.remove, XMakeAttributes.update);
480
ErrorUtilities.VerifyThrowInvalidOperation(parent.Parent is ProjectTargetElement || (Include.Length > 0 || Update.Length > 0 ||
Remove
.Length > 0), "OM_ItemsOutsideTargetMustHaveIncludeOrUpdateOrRemove");
Definition\Project.cs (3)
2612
else if (!string.IsNullOrEmpty(itemElement.
Remove
))
2695
var removeSpec = new EvaluationItemSpec(itemElement.
Remove
, _data.Expander, itemElement.RemoveLocation, itemElement.ContainingProject.DirectoryPath);
2828
SingleItemSpecProvenance(itemElement.Update, itemElement.UpdateLocation, Operation.Update) ?? SingleItemSpecProvenance(itemElement.
Remove
, itemElement.RemoveLocation, Operation.Remove) :
Evaluation\Evaluator.cs (1)
531
itemElement.
Remove
,
Evaluation\LazyItemEvaluator.cs (1)
585
ProcessItemSpec(rootDirectory, itemElement.
Remove
, itemElement.RemoveLocation, operationBuilder);
Evaluation\ProjectParser.cs (1)
399
ProjectErrorUtilities.VerifyThrowInvalidProject(!(parent is ProjectItemElement) || ((ProjectItemElement)parent).
Remove
.Length == 0, element.Location, "ChildElementsBelowRemoveNotAllowed", element.Name);