42 references to ThrowInvalidProject
Microsoft.Build (42)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (3)
472
ProjectErrorUtilities.
ThrowInvalidProject
(
506
ProjectErrorUtilities.
ThrowInvalidProject
(
515
ProjectErrorUtilities.
ThrowInvalidProject
(
Evaluation\Conditionals\AndExpressionNode.cs (2)
26
ProjectErrorUtilities.
ThrowInvalidProject
(
43
ProjectErrorUtilities.
ThrowInvalidProject
(
Evaluation\Conditionals\FunctionCallExpressionNode.cs (1)
141
ProjectErrorUtilities.
ThrowInvalidProject
(
Evaluation\Conditionals\NotExpressionNode.cs (1)
26
ProjectErrorUtilities.
ThrowInvalidProject
(
Evaluation\Conditionals\NumericComparisonExpressionNode.cs (1)
50
ProjectErrorUtilities.
ThrowInvalidProject
(
Evaluation\Conditionals\OrExpressionNode.cs (2)
26
ProjectErrorUtilities.
ThrowInvalidProject
(
43
ProjectErrorUtilities.
ThrowInvalidProject
(
Evaluation\Conditionals\Parser.cs (10)
112
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, _lexer.GetErrorResource(), expression, errorPosition, _lexer.UnexpectedlyFound);
118
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "UnexpectedTokenInCondition", expression, _lexer.IsNextString(), errorPosition);
182
ProjectErrorUtilities.
ThrowInvalidProject
(_elementLocation, "UnexpectedTokenInCondition", expression, _lexer.IsNextString(), errorPosition);
204
ProjectErrorUtilities.
ThrowInvalidProject
(_elementLocation, "UnexpectedTokenInCondition", expression, _lexer.IsNextString(), errorPosition);
226
ProjectErrorUtilities.
ThrowInvalidProject
(_elementLocation, "UnexpectedTokenInCondition", expression, _lexer.IsNextString(), errorPosition);
297
ProjectErrorUtilities.
ThrowInvalidProject
(_elementLocation, "UnexpectedTokenInCondition", expression, _lexer.IsNextString(), errorPosition);
312
ProjectErrorUtilities.
ThrowInvalidProject
(_elementLocation, "UnexpectedTokenInCondition", expression, _lexer.IsNextString(), errorPosition);
322
ProjectErrorUtilities.
ThrowInvalidProject
(_elementLocation, "UnexpectedTokenInCondition", expression, _lexer.IsNextString(), errorPosition);
330
ProjectErrorUtilities.
ThrowInvalidProject
(_elementLocation, "UnexpectedTokenInCondition", expression, _lexer.IsNextString(), errorPosition);
391
ProjectErrorUtilities.
ThrowInvalidProject
(_elementLocation, _lexer.GetErrorResource(), expression, errorPosition, _lexer.UnexpectedlyFound);
Evaluation\Evaluator.cs (1)
2002
ProjectErrorUtilities.
ThrowInvalidProject
(importLocationInProject, "InvalidAttributeValue", String.Empty, XMakeAttributes.project, XMakeElements.import);
Evaluation\Expander.cs (4)
2373
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidItemFunctionExpression", functionName, item.Key, e.Message);
2426
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidItemFunctionExpression", functionName, item.Key, e.Message);
2510
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidItemFunctionExpression", functionName, item.Key, e.Message);
2583
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "InvalidItemFunctionExpression", functionName, item.Key, e.Message);
Evaluation\ProjectParser.cs (3)
598
ProjectErrorUtilities.
ThrowInvalidProject
(onError.Location, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name);
607
ProjectErrorUtilities.
ThrowInvalidProject
(onError.Location, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name);
630
ProjectErrorUtilities.
ThrowInvalidProject
(onError.Location, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name);
Instance\TaskFactories\AssemblyTaskFactory.cs (8)
285
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, Environment.NewLine + e.InnerException.ToString());
298
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, e.Message);
303
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, e.Message);
307
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, e.Message);
436
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "TaskLoadFailure", taskName, _loadedType.Assembly.AssemblyLocation, Environment.NewLine + e.InnerException.ToString());
449
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "TaskLoadFailure", taskName, _loadedType.Assembly.AssemblyLocation, e.Message);
454
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "TaskLoadFailure", taskName, _loadedType.Assembly.AssemblyLocation, e.Message);
458
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "TaskLoadFailure", taskName, _loadedType.Assembly.AssemblyLocation, e.Message);
Instance\TaskRegistry.cs (6)
1337
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "TaskLoadFailure", taskName, _taskFactoryWrapperInstance.Name, message);
1434
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "TaskFactoryLoadFailure", TaskFactoryAttributeName, taskFactoryLoadInfo.AssemblyLocation, Environment.NewLine + e.InnerException.ToString());
1447
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "TaskFactoryLoadFailure", TaskFactoryAttributeName, taskFactoryLoadInfo.AssemblyLocation, e.Message);
1451
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "TaskFactoryLoadFailure", TaskFactoryAttributeName, taskFactoryLoadInfo.AssemblyLocation, e.Message);
1536
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "TaskFactoryLoadFailure", TaskFactoryAttributeName, taskFactoryLoadInfo.AssemblyLocation, message);
1739
ProjectErrorUtilities.
ThrowInvalidProject
(