10 references to VerifyThrowInvalidProject
Microsoft.Build (10)
BackEnd\BuildManager\BuildManager.cs (1)
2325
ProjectErrorUtilities.
VerifyThrowInvalidProject
(entryPointNode.ProjectInstance.Targets.Count > 0, entryPointNode.ProjectInstance.ProjectFileLocation, "NoTargetSpecified");
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
399
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!(keepMetadata != null && removeMetadata != null), originalItem.KeepMetadataLocation, "KeepAndRemoveMetadataMutuallyExclusive");
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1236
ProjectErrorUtilities.
VerifyThrowInvalidProject
(allTargets.Length > 0,
Evaluation\Expander.ItemExpander.cs (2)
481
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!itemVector.ItemType.IsNullOrEmpty(), elementLocation, "InvalidFunctionPropertyExpression");
535
ProjectErrorUtilities.
VerifyThrowInvalidProject
(captures.Count > 0, elementLocation, "InvalidFunctionPropertyExpression");
Evaluation\ProjectParser.cs (5)
529
ProjectErrorUtilities.
VerifyThrowInvalidProject
(element.GetAttribute(XMakeAttributes.taskName).Length > 0, element.Location, "ProjectTaskNameEmpty");
824
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!foundOtherwise, childElement.Location, "WhenNotAllowedAfterOtherwise");
830
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!foundOtherwise, childElement.Location, "MultipleOtherwise");
847
ProjectErrorUtilities.
VerifyThrowInvalidProject
(foundWhen, element.Location, "ChooseMustContainWhen");
929
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!_seenProjectExtensions, element.Location, "DuplicateProjectExtensions");