22 references to VerifyThrowInvalidProject
Microsoft.Build (22)
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (1)
75
ProjectErrorUtilities.
VerifyThrowInvalidProject
(
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
416
ProjectErrorUtilities.
VerifyThrowInvalidProject
(
BackEnd\Components\RequestBuilder\TargetEntry.cs (1)
938
ProjectErrorUtilities.
VerifyThrowInvalidProject
(
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (1)
142
ProjectErrorUtilities.
VerifyThrowInvalidProject
((TargetOutputSpecification.Length > 0) || (TargetInputSpecification.Length == 0),
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
1610
ProjectErrorUtilities.
VerifyThrowInvalidProject
(false, _taskLocation, "TaskDeclarationOrUsageError", _taskName);
Construction\ProjectChooseElement.cs (1)
119
ProjectErrorUtilities.
VerifyThrowInvalidProject
(nestingDepth <= ProjectParser.MaximumChooseNesting, immediateParent.Location, "ChooseOverflow", ProjectParser.MaximumChooseNesting);
Evaluation\Conditionals\MultipleComparisonExpressionNode.cs (2)
42
ProjectErrorUtilities.
VerifyThrowInvalidProject
(
90
ProjectErrorUtilities.
VerifyThrowInvalidProject
(
Evaluation\Expander.cs (1)
1879
ProjectErrorUtilities.
VerifyThrowInvalidProject
(match.Value == expression, elementLocation, "EmbeddedItemVectorCannotBeItemized", expression);
Evaluation\ProjectParser.cs (10)
136
ProjectErrorUtilities.
VerifyThrowInvalidProject
(element.Name != XMakeElements.visualStudioProject, element.Location, "ProjectUpgradeNeeded", _project.FullPath);
137
ProjectErrorUtilities.
VerifyThrowInvalidProject
(element.LocalName == XMakeElements.project, element.Location, "UnrecognizedElement", element.Name);
226
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!XMakeElements.ReservedItemNames.Contains(childElement.Name) && !ReservedPropertyNames.IsReservedProperty(childElement.Name), childElement.Location, "CannotModifyReservedProperty", childElement.Name);
310
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!XMakeElements.ReservedItemNames.Contains(itemType), element.Location, "CannotModifyReservedItem", itemType);
399
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!(parent is ProjectItemElement) || ((ProjectItemElement)parent).Remove.Length == 0, element.Location, "ChildElementsBelowRemoveNotAllowed", element.Name);
400
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!FileUtilities.ItemSpecModifiers.IsItemSpecModifier(element.Name), element.Location, "ItemSpecModifierCannotBeCustomMetadata", element.Name);
401
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!XMakeElements.ReservedItemNames.Contains(element.Name), element.Location, "CannotModifyReservedItemMetadata", element.Name);
690
ProjectErrorUtilities.
VerifyThrowInvalidProject
(
699
ProjectErrorUtilities.
VerifyThrowInvalidProject
(String.IsNullOrWhiteSpace(propertyNameAttribute?.Value) || !ReservedPropertyNames.IsReservedProperty(propertyNameAttribute.Value), element.Location, "CannotModifyReservedProperty", propertyNameAttribute?.Value);
776
ProjectErrorUtilities.
VerifyThrowInvalidProject
(nestingDepth <= MaximumChooseNesting, element.Location, "ChooseOverflow", MaximumChooseNesting);
Graph\ProjectGraph.cs (1)
677
ProjectErrorUtilities.
VerifyThrowInvalidProject
(
Instance\ProjectPropertyInstance.cs (2)
334
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!XMakeElements.ReservedItemNames.Contains(name), location, "CannotModifyReservedProperty", name);
335
ProjectErrorUtilities.
VerifyThrowInvalidProject
(mayBeReserved || !ReservedPropertyNames.IsReservedProperty(name), location, "CannotModifyReservedProperty", name);