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)
1672
ProjectErrorUtilities.
VerifyThrowInvalidProject
(firstAtSignOffset == lastAtSignOffset, elementLocation, "InvalidRegistryPropertyExpression", "$(" + registryExpression + ")", String.Empty);
2346
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2394
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2441
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 1, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2465
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2541
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2608
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 1, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2680
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2699
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2708
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 1, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2791
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2808
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 1, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2842
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 2, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2875
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 2, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2908
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 2, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
3055
ProjectErrorUtilities.
VerifyThrowInvalidProject
(match.Groups[RegularExpressions.ItemSpecificationGroup].Length == 0, _elementLocation, "QualifiedMetadataInTransformNotAllowed", match.Value, name);
3343
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!expressionRoot.IsEmpty, elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty);
5324
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);