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