4 writes to KeepMetadata
Microsoft.Build.Engine.OM.UnitTests (4)
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (4)
665
Assert.ThrowsAny<InvalidOperationException>(() => item.View.
KeepMetadata
= "xx");
682
itemInTargt.VerifySetter("newKeepMetadata", (i) => i.KeepMetadata, (i, v) => i.
KeepMetadata
= v);
684
itemInTargt.View.
KeepMetadata
= null;
686
Assert.ThrowsAny<InvalidOperationException>(() => itemInTargt.View.
KeepMetadata
= "xx"); // RemoveMetadata/KeepDuplicate exclusive
5 references to KeepMetadata
Microsoft.Build (2)
Construction\ProjectItemElement.cs (1)
253
ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) ||
KeepMetadata
.Length == 0, "OM_EitherAttributeButNotBoth", ElementName, XMakeAttributes.keepMetadata, XMakeAttributes.removeMetadata);
Evaluation\Evaluator.cs (1)
521
itemElement.
KeepMetadata
,
Microsoft.Build.Engine.OM.UnitTests (3)
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
898
Assert.Equal(realXml.
KeepMetadata
, viewXml.
KeepMetadata
);
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (1)
682
itemInTargt.VerifySetter("newKeepMetadata", (i) => i.
KeepMetadata
, (i, v) => i.KeepMetadata = v);