8 references to VerifyThrowInvalidOperation
Microsoft.Build (8)
Construction\ProjectItemElement.cs (4)
127
ErrorUtilities.
VerifyThrowInvalidOperation
(String.IsNullOrEmpty(value) || Remove.Length == 0, "OM_EitherAttributeButNotBoth", ElementName, XMakeAttributes.exclude, XMakeAttributes.remove);
128
ErrorUtilities.
VerifyThrowInvalidOperation
(String.IsNullOrEmpty(value) || Update.Length == 0, "OM_EitherAttributeButNotBoth", ElementName, XMakeAttributes.exclude, XMakeAttributes.update);
232
ErrorUtilities.
VerifyThrowInvalidOperation
(String.IsNullOrEmpty(value) || RemoveMetadata.Length == 0, "OM_EitherAttributeButNotBoth", ElementName, XMakeAttributes.removeMetadata, XMakeAttributes.keepMetadata);
253
ErrorUtilities.
VerifyThrowInvalidOperation
(String.IsNullOrEmpty(value) || KeepMetadata.Length == 0, "OM_EitherAttributeButNotBoth", ElementName, XMakeAttributes.keepMetadata, XMakeAttributes.removeMetadata);
Construction\ProjectOutputElement.cs (2)
93
ErrorUtilities.
VerifyThrowInvalidOperation
(String.IsNullOrEmpty(PropertyName), "OM_EitherAttributeButNotBoth", ElementName, XMakeAttributes.itemName, XMakeAttributes.propertyName);
113
ErrorUtilities.
VerifyThrowInvalidOperation
(String.IsNullOrEmpty(ItemType), "OM_EitherAttributeButNotBoth", ElementName, XMakeAttributes.itemName, XMakeAttributes.propertyName);
Construction\ProjectUsingTaskElement.cs (2)
57
ErrorUtilities.
VerifyThrowInvalidOperation
(String.IsNullOrEmpty(AssemblyName), "OM_EitherAttributeButNotBoth", ElementName, XMakeAttributes.assemblyFile, XMakeAttributes.assemblyName);
74
ErrorUtilities.
VerifyThrowInvalidOperation
(String.IsNullOrEmpty(AssemblyFile), "OM_EitherAttributeButNotBoth", XMakeElements.usingTask, XMakeAttributes.assemblyFile, XMakeAttributes.assemblyName);