33 references to VerifyThrowInvalidProject
Microsoft.Build (33)
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (2)
1132
ProjectErrorUtilities.
VerifyThrowInvalidProject
(input.AsSpan().IndexOfAny(MSBuildConstants.InvalidPathChars) < 0, _project.ProjectFileLocation, "IllegalCharactersInFileOrDirectory", input, inputItemName);
1133
ProjectErrorUtilities.
VerifyThrowInvalidProject
(output.AsSpan().IndexOfAny(MSBuildConstants.InvalidPathChars) < 0, _project.ProjectFileLocation, "IllegalCharactersInFileOrDirectory", output, outputItemName);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (3)
413
ProjectErrorUtilities.
VerifyThrowInvalidProject
(
448
ProjectErrorUtilities.
VerifyThrowInvalidProject
(
456
ProjectErrorUtilities.
VerifyThrowInvalidProject
(
Construction\ProjectElementContainer.cs (1)
502
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!XmlElement.HasAttribute(child.XmlElement.Name),
Evaluation\Expander.cs (18)
1703
ProjectErrorUtilities.
VerifyThrowInvalidProject
(firstAtSignOffset == lastAtSignOffset, elementLocation, "InvalidRegistryPropertyExpression", "$(" + registryExpression + ")", String.Empty);
2479
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2527
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2574
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 1, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2598
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2674
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2741
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 1, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2813
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2832
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2845
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 1, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2963
ProjectErrorUtilities.
VerifyThrowInvalidProject
(groupCollection[RegularExpressions.ItemSpecificationGroup].Length == 0, elementLocation, "QualifiedMetadataInTransformNotAllowed", match.Value, name);
3078
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
3095
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 1, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
3129
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 2, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
3162
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 2, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
3195
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 2, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
3780
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!expressionRoot.IsEmpty, elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty);
4464
ProjectErrorUtilities.
VerifyThrowInvalidProject
(netPropertyName.Length > 0, elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty);
Evaluation\ProjectParser.cs (8)
295
ProjectErrorUtilities.
VerifyThrowInvalidProject
(exclusiveAttributeCount == 1 || belowTarget, element.Location, "IncludeRemoveOrUpdate", exclusiveItemOperation, itemType);
301
ProjectErrorUtilities.
VerifyThrowInvalidProject
(include.Length > 0 || element.Attributes[XMakeAttributes.include] == null, element.Location, "MissingRequiredAttribute", XMakeAttributes.include, itemType);
304
ProjectErrorUtilities.
VerifyThrowInvalidProject
(remove.Length > 0 || element.Attributes[XMakeAttributes.remove] == null, element.Location, "MissingRequiredAttribute", XMakeAttributes.remove, itemType);
307
ProjectErrorUtilities.
VerifyThrowInvalidProject
(update.Length > 0 || element.Attributes[XMakeAttributes.update] == null, element.Location, "MissingRequiredAttribute", XMakeAttributes.update, itemType);
409
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!containsItemVector, element.Location, "MetadataDefinitionCannotContainItemVectorExpression", metadatum.Value, metadatum.Name);
429
ProjectErrorUtilities.
VerifyThrowInvalidProject
(
449
ProjectErrorUtilities.
VerifyThrowInvalidProject
(
668
ProjectErrorUtilities.
VerifyThrowInvalidProject
(childElement.Name == XMakeElements.output, childElement.Location, "UnrecognizedChildElement", childElement.Name, task.Name);
Xml\ProjectXmlUtilities.cs (1)
176
ProjectErrorUtilities.
VerifyThrowInvalidProject
(element.GetAttribute(attributeName).Length > 0, element.Location, "MissingRequiredAttribute", attributeName, element.Name);