10 references to VerifyThrowInvalidProject
Microsoft.Build (10)
BackEnd\BuildManager\BuildManager.cs (1)
1951
ProjectErrorUtilities.
VerifyThrowInvalidProject
(entryPointNode.ProjectInstance.Targets.Count > 0, entryPointNode.ProjectInstance.ProjectFileLocation, "NoTargetSpecified");
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
390
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!(keepMetadata != null && removeMetadata != null), originalItem.KeepMetadataLocation, "KeepAndRemoveMetadataMutuallyExclusive");
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1182
ProjectErrorUtilities.
VerifyThrowInvalidProject
(allTargets.Length > 0,
Evaluation\Expander.cs (2)
2006
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!string.IsNullOrEmpty(expressionCapture.ItemType), elementLocation, "InvalidFunctionPropertyExpression");
2136
ProjectErrorUtilities.
VerifyThrowInvalidProject
(match.Captures.Count > 0, elementLocation, "InvalidFunctionPropertyExpression");
Evaluation\ProjectParser.cs (5)
511
ProjectErrorUtilities.
VerifyThrowInvalidProject
(element.GetAttribute(XMakeAttributes.taskName).Length > 0, element.Location, "ProjectTaskNameEmpty");
788
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!foundOtherwise, childElement.Location, "WhenNotAllowedAfterOtherwise");
794
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!foundOtherwise, childElement.Location, "MultipleOtherwise");
807
ProjectErrorUtilities.
VerifyThrowInvalidProject
(foundWhen, element.Location, "ChooseMustContainWhen");
885
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!_seenProjectExtensions, element.Location, "DuplicateProjectExtensions");