13 writes to Remove
Microsoft.Build.Engine.OM.UnitTests (13)
Construction\ConstructionEditing_Tests.cs (4)
707
item.
Remove
= "r";
739
itemRemoveFirst.
Remove
= "i";
741
itemRemoveSecond.
Remove
= "i";
743
itemRemoveThird.
Remove
= "i";
Construction\ProjectItemElement_Tests.cs (5)
745
item.
Remove
= "i1";
775
item.
Remove
= "ib";
790
item.
Remove
= String.Empty;
805
item.
Remove
= null;
1013
item.
Remove
= "i2";
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (4)
653
Assert.ThrowsAny<InvalidOperationException>(() => item.View.
Remove
= "xx"); // Include/Update/Remove are exclusive
656
item.VerifySetter("newRemove", (i) => i.Remove, (i, v) => i.
Remove
= v);
659
item.View.
Remove
= null;
662
Assert.ThrowsAny<InvalidOperationException>(() => item.View.
Remove
= "xx"); // Include/Update/Remove are exclusive
18 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);
475
ErrorUtilities.VerifyThrowInvalidOperation(parent.Parent is ProjectTargetElement || (Include.Length > 0 || Update.Length > 0 ||
Remove
.Length > 0), "OM_ItemsOutsideTargetMustHaveIncludeOrUpdateOrRemove");
Definition\Project.cs (3)
2606
else if (!string.IsNullOrEmpty(itemElement.
Remove
))
2675
var removeSpec = new EvaluationItemSpec(itemElement.
Remove
, _data.Expander, itemElement.RemoveLocation, itemElement.ContainingProject.DirectoryPath);
2808
SingleItemSpecProvenance(itemElement.Update, itemElement.UpdateLocation, Operation.Update) ?? SingleItemSpecProvenance(itemElement.
Remove
, itemElement.RemoveLocation, Operation.Remove) :
Evaluation\Evaluator.cs (1)
518
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);
Microsoft.Build.Engine.OM.UnitTests (8)
Construction\ProjectItemElement_Tests.cs (5)
599
Assert.Equal("i", item.
Remove
);
777
Assert.Equal("ib", item.
Remove
);
792
Assert.Equal(String.Empty, item.
Remove
);
807
Assert.Equal(String.Empty, item.
Remove
);
1015
Assert.Equal("i2", item.
Remove
);
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
896
Assert.Equal(realXml.
Remove
, viewXml.
Remove
);
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (1)
656
item.VerifySetter("newRemove", (i) => i.
Remove
, (i, v) => i.Remove = v);