12 writes to Update
Microsoft.Build.Engine.OM.UnitTests (12)
Construction\ConstructionEditing_Tests.cs (3)
742itemUpdate.Update = "i"; 1148firstUpdateItem.Update = "a"; 1149secondUpdateItem.Update = "a";
Construction\ProjectItemElement_Tests.cs (6)
761item.Update = "i1"; 854item.Update = "i1"; 869item.Update = "ib"; 884item.Update = String.Empty; 899item.Update = null; 1033item.Update = "i2";
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (3)
654Assert.ThrowsAny<InvalidOperationException>(() => item.View.Update = "xx"); // Include/Update/Remove are exclusive 658Assert.ThrowsAny<InvalidOperationException>(() => item.View.Update = "xx"); // Include/Update/Remove are exclusive 660item.VerifySetter("newUpdate", (i) => i.Update, (i, v) => i.Update = v);
14 references to Update
Microsoft.Build (6)
Construction\ProjectItemElement.cs (4)
105ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || (Remove.Length == 0 && Update.Length == 0), "OM_OneOfAttributeButNotMore", ElementName, XMakeAttributes.include, XMakeAttributes.remove, XMakeAttributes.update); 128ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || Update.Length == 0, "OM_EitherAttributeButNotBoth", ElementName, XMakeAttributes.exclude, XMakeAttributes.update); 149ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || (Include.Length == 0 && Update.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 (1)
2808SingleItemSpecProvenance(itemElement.Update, itemElement.UpdateLocation, Operation.Update) ?? SingleItemSpecProvenance(itemElement.Remove, itemElement.RemoveLocation, Operation.Remove) :
Evaluation\LazyItemEvaluator.cs (1)
537ProcessItemSpec(rootDirectory, itemElement.Update, itemElement.UpdateLocation, operationBuilder);
Microsoft.Build.Engine.OM.UnitTests (8)
Construction\ProjectItemElement_Tests.cs (5)
612Assert.Equal("i", item.Update); 871Assert.Equal("ib", item.Update); 886Assert.Equal(String.Empty, item.Update); 901Assert.Equal(String.Empty, item.Update); 1035Assert.Equal("i2", item.Update);
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
897Assert.Equal(realXml.Update, viewXml.Update);
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (1)
660item.VerifySetter("newUpdate", (i) => i.Update, (i, v) => i.Update = v);