5 references to VerifyThrowInvalidOperation
Microsoft.Build (5)
Construction\ProjectItemElement.cs (2)
191
ErrorUtilities.
VerifyThrowInvalidOperation
(String.IsNullOrEmpty(value) || RemoveMetadata.Length != 0, "OM_MatchOnMetadataOnlyApplicableToRemoveItems", ElementName, XMakeAttributes.matchOnMetadata);
211
ErrorUtilities.
VerifyThrowInvalidOperation
(String.IsNullOrEmpty(value) || MatchOnMetadata.Length != 0, "OM_MatchOnMetadataOptionsOnlyApplicableToItemsWithMatchOnMetadata", ElementName, XMakeAttributes.matchOnMetadataOptions);
Definition\Project.cs (2)
1677
ErrorUtilities.
VerifyThrowInvalidOperation
(!ThrowInsteadOfSplittingItemElement, "OM_CannotSplitItemElementWhenSplittingIsDisabled", itemElement.Location, $"{nameof(Project)}.{nameof(ThrowInsteadOfSplittingItemElement)}");
3398
ErrorUtilities.
VerifyThrowInvalidOperation
(!ThrowInsteadOfSplittingItemElement, "OM_CannotSplitItemElementWhenSplittingIsDisabled", itemElement.Location, $"{nameof(Project)}.{nameof(ThrowInsteadOfSplittingItemElement)}");
Definition\ProjectCollection.cs (1)
1611
ErrorUtilities.
VerifyThrowInvalidOperation
(ReferenceEquals(project.ProjectCollection, this), "OM_IncorrectObjectAssociation", "Project", "ProjectCollection");