49 references to ThrowInvalidProject
Microsoft.Build (49)
BackEnd\Components\RequestBuilder\BatchingEngine.cs (1)
402
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation,
BackEnd\Components\RequestBuilder\TargetEntry.cs (1)
342
ProjectErrorUtilities.
ThrowInvalidProject
(_target.ConditionLocation, "TargetConditionHasInvalidMetadataReference", _target.Name, _target.Condition);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
720
ProjectErrorUtilities.
ThrowInvalidProject
(_taskNode.ContinueOnErrorLocation, "InvalidContinueOnErrorAttribute", _taskNode.Name, e.Message);
751
ProjectErrorUtilities.
ThrowInvalidProject
(_targetChildInstance.Location, "TaskParametersError", _taskNode.Name, String.Empty);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
1118
ProjectErrorUtilities.
ThrowInvalidProject
(
Construction\ProjectMetadataElement.cs (1)
148
ProjectErrorUtilities.
ThrowInvalidProject
(parentLocation, "InvalidMetadataAsAttribute", name, parentName);
Definition\Project.cs (1)
4313
ProjectErrorUtilities.
ThrowInvalidProject
(toolsVersionLocation, "UnrecognizedToolsVersion", toolsVersionToUse, toolsVersionList);
Evaluation\Conditionals\FunctionCallExpressionNode.cs (1)
96
ProjectErrorUtilities.
ThrowInvalidProject
(
Evaluation\Conditionals\GenericExpressionNode.cs (1)
61
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 (3)
2171
ProjectErrorUtilities.
ThrowInvalidProject
(importLocationInProject, "ImportIntroducesCircularity", importFileUnescaped, importedBy);
2306
ProjectErrorUtilities.
ThrowInvalidProject
(importLocationInProject, "ImportedProjectNotFound",
2359
ProjectErrorUtilities.
ThrowInvalidProject
(importLocationInProject, "InvalidImportedProjectFile",
Evaluation\Expander.cs (26)
834
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, AssemblyResources.GetString("InvalidFunctionPropertyExpressionDetailMismatchedParenthesis"));
849
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, AssemblyResources.GetString("InvalidFunctionPropertyExpressionDetailMismatchedQuote"));
1000
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "CannotExpandItemMetadata", expression, ex.Message);
1369
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionPropertyExpression", propertyBody, String.Empty);
1380
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionPropertyExpression", propertyBody, AssemblyResources.GetString("InvalidFunctionPropertyExpressionDetailMismatchedSquareBrackets"));
1403
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionPropertyExpression", propertyBody, String.Empty);
1722
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidRegistryPropertyExpression", "$(" + registryExpression + ")", ex.Message);
2617
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
2815
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
2850
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
2883
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
2919
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
3069
ProjectErrorUtilities.
ThrowInvalidProject
(_elementLocation, "CannotEvaluateItemMetadata", name, ex.Message);
3349
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionStaticMethodSyntax", expressionFunction, String.Empty);
3363
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionStaticMethodSyntax", expressionFunction, String.Empty);
3374
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionTypeUnavailable", expressionFunction, typeName);
3385
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, AssemblyResources.GetString("InvalidFunctionPropertyExpressionDetailMismatchedSquareBrackets"));
3416
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty);
3448
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionMethodUnavailable", _methodMethodName, _receiverType.FullName);
3465
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionMethodUnavailable", _methodMethodName, _receiverType.FullName);
3576
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionPropertyExpression", partiallyEvaluated, ex.Message.Replace("\r\n", " "));
3639
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionPropertyExpression", partiallyEvaluated, ex.InnerException.Message.Replace("\r\n", " "));
3650
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionStaticMethodSyntax", _expression, ex.Message.Replace("Microsoft.Build.Evaluation.IntrinsicFunctions.", "[MSBuild]::"));
3656
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionPropertyExpression", partiallyEvaluated, ex.Message);
5146
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, AssemblyResources.GetString("InvalidFunctionPropertyExpressionDetailMismatchedParenthesis"));
5217
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty);
Evaluation\ProjectParser.cs (2)
583
ProjectErrorUtilities.
ThrowInvalidProject
(element.GetAttributeLocation(XMakeAttributes.name), "NameInvalid", targetName, targetName[indexOfSpecialCharacter]);
637
ProjectErrorUtilities.
ThrowInvalidProject
(childElement.Location, "PropertyOutsidePropertyGroupInTarget", childElement.Name, childElement.ParentNode.Name);
Instance\ProjectInstance.cs (1)
2963
ProjectErrorUtilities.
ThrowInvalidProject
(toolsVersionLocation, "UnrecognizedToolsVersion", toolsVersionToUse, toolsVersionList);
Instance\TaskRegistry.cs (1)
1429
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "CouldNotFindFactory", TaskFactoryAttributeName, taskFactoryLoadInfo.AssemblyLocation);
Xml\ProjectXmlUtilities.cs (3)
73
ProjectErrorUtilities.
ThrowInvalidProject
(child.Location, "InvalidChildElementDueToDuplication", child.Name, child.ParentNode.Name);
81
ProjectErrorUtilities.
ThrowInvalidProject
(location, "UnrecognizedChildElement", name, parentName);
196
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]);