33 references to VerifyThrowInvalidProject
Microsoft.Build (33)
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (2)
1132
ProjectErrorUtilities.
VerifyThrowInvalidProject
(input.IndexOfAny(Path.GetInvalidPathChars()) == -1, _project.ProjectFileLocation, "IllegalCharactersInFileOrDirectory", input, inputItemName);
1133
ProjectErrorUtilities.
VerifyThrowInvalidProject
(output.IndexOfAny(Path.GetInvalidPathChars()) == -1, _project.ProjectFileLocation, "IllegalCharactersInFileOrDirectory", output, outputItemName);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (3)
408
ProjectErrorUtilities.
VerifyThrowInvalidProject
(
443
ProjectErrorUtilities.
VerifyThrowInvalidProject
(
451
ProjectErrorUtilities.
VerifyThrowInvalidProject
(
Construction\ProjectElementContainer.cs (1)
502
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!XmlElement.HasAttribute(child.XmlElement.Name),
Evaluation\Expander.cs (18)
1674
ProjectErrorUtilities.
VerifyThrowInvalidProject
(firstAtSignOffset == lastAtSignOffset, elementLocation, "InvalidRegistryPropertyExpression", "$(" + registryExpression + ")", String.Empty);
2348
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2396
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2443
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 1, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2467
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2543
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2610
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 1, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2682
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2701
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2710
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 1, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2793
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2810
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 1, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2844
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 2, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2877
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 2, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2910
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 2, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
3057
ProjectErrorUtilities.
VerifyThrowInvalidProject
(match.Groups[RegularExpressions.ItemSpecificationGroup].Length == 0, _elementLocation, "QualifiedMetadataInTransformNotAllowed", match.Value, name);
3381
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!expressionRoot.IsEmpty, elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty);
4066
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)
177
ProjectErrorUtilities.
VerifyThrowInvalidProject
(element.GetAttribute(attributeName).Length > 0, element.Location, "MissingRequiredAttribute", attributeName, element.Name);