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)
412
ProjectErrorUtilities.
VerifyThrowInvalidProject
(
447
ProjectErrorUtilities.
VerifyThrowInvalidProject
(
455
ProjectErrorUtilities.
VerifyThrowInvalidProject
(
Construction\ProjectElementContainer.cs (1)
502
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!XmlElement.HasAttribute(child.XmlElement.Name),
Evaluation\Expander.cs (18)
1678
ProjectErrorUtilities.
VerifyThrowInvalidProject
(firstAtSignOffset == lastAtSignOffset, elementLocation, "InvalidRegistryPropertyExpression", "$(" + registryExpression + ")", String.Empty);
2352
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2400
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2447
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 1, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2471
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2547
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2614
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 1, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2686
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2705
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2714
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 1, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2797
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2814
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 1, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2848
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 2, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2881
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 2, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2914
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 2, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
3061
ProjectErrorUtilities.
VerifyThrowInvalidProject
(match.Groups[RegularExpressions.ItemSpecificationGroup].Length == 0, _elementLocation, "QualifiedMetadataInTransformNotAllowed", match.Value, name);
3362
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!expressionRoot.IsEmpty, elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty);
4047
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);