11 references to VerifyThrowInvalidProject
Microsoft.Build (11)
BackEnd\BuildManager\BuildManager.cs (1)
2481
ProjectErrorUtilities.
VerifyThrowInvalidProject
(entryPointNode.ProjectInstance.Targets.Count > 0, entryPointNode.ProjectInstance.ProjectFileLocation, "NoTargetSpecified");
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
400
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!(keepMetadata != null && removeMetadata != null), originalItem.KeepMetadataLocation, "KeepAndRemoveMetadataMutuallyExclusive");
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1241
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\LazyItemEvaluator.RemoveOperation.cs (1)
27
ProjectErrorUtilities.
VerifyThrowInvalidProject
(
Evaluation\ProjectParser.cs (5)
530
ProjectErrorUtilities.
VerifyThrowInvalidProject
(element.GetAttribute(XMakeAttributes.taskName).Length > 0, element.Location, "ProjectTaskNameEmpty");
825
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!foundOtherwise, childElement.Location, "WhenNotAllowedAfterOtherwise");
831
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!foundOtherwise, childElement.Location, "MultipleOtherwise");
848
ProjectErrorUtilities.
VerifyThrowInvalidProject
(foundWhen, element.Location, "ChooseMustContainWhen");
930
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!_seenProjectExtensions, element.Location, "DuplicateProjectExtensions");