10 references to VerifyThrowInvalidProject
Microsoft.Build (10)
BackEnd\BuildManager\BuildManager.cs (1)
1971
ProjectErrorUtilities.
VerifyThrowInvalidProject
(entryPointNode.ProjectInstance.Targets.Count > 0, entryPointNode.ProjectInstance.ProjectFileLocation, "NoTargetSpecified");
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
386
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!(keepMetadata != null && removeMetadata != null), originalItem.KeepMetadataLocation, "KeepAndRemoveMetadataMutuallyExclusive");
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1183
ProjectErrorUtilities.
VerifyThrowInvalidProject
(allTargets.Length > 0,
Evaluation\Expander.cs (2)
1997
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!string.IsNullOrEmpty(expressionCapture.ItemType), elementLocation, "InvalidFunctionPropertyExpression");
2128
ProjectErrorUtilities.
VerifyThrowInvalidProject
(match.Captures.Count > 0, elementLocation, "InvalidFunctionPropertyExpression");
Evaluation\ProjectParser.cs (5)
511
ProjectErrorUtilities.
VerifyThrowInvalidProject
(element.GetAttribute(XMakeAttributes.taskName).Length > 0, element.Location, "ProjectTaskNameEmpty");
791
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!foundOtherwise, childElement.Location, "WhenNotAllowedAfterOtherwise");
797
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!foundOtherwise, childElement.Location, "MultipleOtherwise");
810
ProjectErrorUtilities.
VerifyThrowInvalidProject
(foundWhen, element.Location, "ChooseMustContainWhen");
888
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!_seenProjectExtensions, element.Location, "DuplicateProjectExtensions");