48 references to ThrowInvalidProject
Microsoft.Build (48)
BackEnd\Components\RequestBuilder\BatchingEngine.cs (1)
416
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation,
BackEnd\Components\RequestBuilder\TargetEntry.cs (1)
352
ProjectErrorUtilities.
ThrowInvalidProject
(_target.ConditionLocation, "TargetConditionHasInvalidMetadataReference", _target.Name, _target.Condition);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
722
ProjectErrorUtilities.
ThrowInvalidProject
(_taskNode.ContinueOnErrorLocation, "InvalidContinueOnErrorAttribute", _taskNode.Name, e.Message);
753
ProjectErrorUtilities.
ThrowInvalidProject
(_targetChildInstance.Location, "TaskParametersError", _taskNode.Name, String.Empty);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
1122
ProjectErrorUtilities.
ThrowInvalidProject
(
Construction\ProjectMetadataElement.cs (1)
151
ProjectErrorUtilities.
ThrowInvalidProject
(parentLocation, "InvalidMetadataAsAttribute", name, parentName);
Definition\Project.cs (1)
4318
ProjectErrorUtilities.
ThrowInvalidProject
(toolsVersionLocation, "UnrecognizedToolsVersion", toolsVersionToUse, toolsVersionList);
Evaluation\Conditionals\FunctionCallExpressionNode.cs (1)
95
ProjectErrorUtilities.
ThrowInvalidProject
(
Evaluation\Conditionals\GenericExpressionNode.cs (1)
65
ProjectErrorUtilities.
ThrowInvalidProject
(
Evaluation\Conditionals\Parser.cs (2)
289
ProjectErrorUtilities.
ThrowInvalidProject
(_elementLocation, "UnexpectedTokenInCondition", _lexer.IsNextString(), errorPosition);
395
ProjectErrorUtilities.
ThrowInvalidProject
(_elementLocation, _lexer.GetErrorResource(), expression, errorPosition);
Evaluation\Evaluator.cs (2)
2123
ProjectErrorUtilities.
ThrowInvalidProject
(importLocationInProject, "ImportIntroducesCircularity", importFileUnescaped, importedBy);
2311
ProjectErrorUtilities.
ThrowInvalidProject
(importLocationInProject, "InvalidImportedProjectFile",
Evaluation\Expander.cs (26)
859
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, AssemblyResources.GetString("InvalidFunctionPropertyExpressionDetailMismatchedParenthesis"));
874
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, AssemblyResources.GetString("InvalidFunctionPropertyExpressionDetailMismatchedQuote"));
1025
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "CannotExpandItemMetadata", expression, ex.Message);
1399
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionPropertyExpression", propertyBody, String.Empty);
1410
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionPropertyExpression", propertyBody, AssemblyResources.GetString("InvalidFunctionPropertyExpressionDetailMismatchedSquareBrackets"));
1432
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionPropertyExpression", propertyBody, String.Empty);
1737
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidRegistryPropertyExpression", $"$({registryExpression})", ex.Message);
2631
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
2829
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
2864
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
2897
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
2933
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
3083
ProjectErrorUtilities.
ThrowInvalidProject
(_elementLocation, "CannotEvaluateItemMetadata", name, ex.Message);
3376
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionStaticMethodSyntax", expressionFunction, String.Empty);
3390
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionStaticMethodSyntax", expressionFunction, String.Empty);
3401
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionTypeUnavailable", expressionFunction, typeName);
3412
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, AssemblyResources.GetString("InvalidFunctionPropertyExpressionDetailMismatchedSquareBrackets"));
3443
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty);
3475
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionMethodUnavailable", _methodMethodName, _receiverType.FullName);
3492
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionMethodUnavailable", _methodMethodName, _receiverType.FullName);
3608
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionPropertyExpression", partiallyEvaluated, ex.Message.Replace("\r\n", " "));
3679
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionPropertyExpression", partiallyEvaluated, ex.InnerException.Message.Replace("\r\n", " "));
3690
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionStaticMethodSyntax", _expression, ex.Message.Replace("Microsoft.Build.Evaluation.IntrinsicFunctions.", "[MSBuild]::"));
3696
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionPropertyExpression", partiallyEvaluated, ex.Message);
3995
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, AssemblyResources.GetString("InvalidFunctionPropertyExpressionDetailMismatchedParenthesis"));
4066
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty);
Evaluation\ProjectParser.cs (2)
583
ProjectErrorUtilities.
ThrowInvalidProject
(element.GetAttributeLocation(XMakeAttributes.name), "NameInvalid", targetName, targetName[indexOfSpecialCharacter]);
635
ProjectErrorUtilities.
ThrowInvalidProject
(childElement.Location, "PropertyOutsidePropertyGroupInTarget", childElement.Name, childElement.ParentNode.Name);
Instance\ProjectInstance.cs (1)
3134
ProjectErrorUtilities.
ThrowInvalidProject
(toolsVersionLocation, "UnrecognizedToolsVersion", toolsVersionToUse, toolsVersionList);
Instance\TaskRegistry.cs (1)
1509
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "CouldNotFindFactory", TaskFactoryAttributeName, taskFactoryLoadInfo.AssemblyLocation);
Xml\ProjectXmlUtilities.cs (3)
72
ProjectErrorUtilities.
ThrowInvalidProject
(child.Location, "InvalidChildElementDueToDuplication", child.Name, child.ParentNode.Name);
80
ProjectErrorUtilities.
ThrowInvalidProject
(location, "UnrecognizedChildElement", name, parentName);
195
ProjectErrorUtilities.
ThrowInvalidProject
(attribute.Location, "UnrecognizedAttribute", attribute.Name, attribute.OwnerElement.Name);
XmlUtilities.cs (2)
96
ProjectErrorUtilities.
ThrowInvalidProject
(location, "NameInvalid", name, name[firstInvalidCharLocation]);
114
ProjectErrorUtilities.
ThrowInvalidProject
(element.Location, "NameInvalid", name, name[firstInvalidCharLocation]);