210 references to ProjectErrorUtilities
Microsoft.Build (210)
BackEnd\BuildManager\BuildManager.cs (1)
1951
ProjectErrorUtilities
.VerifyThrowInvalidProject(entryPointNode.ProjectInstance.Targets.Count > 0, entryPointNode.ProjectInstance.ProjectFileLocation, "NoTargetSpecified");
BackEnd\Components\RequestBuilder\BatchingEngine.cs (3)
160
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "CannotReferenceItemMetadataWithoutItemName", unqualifiedMetadataName);
264
ProjectErrorUtilities
.VerifyThrowInvalidProject(
416
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation,
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
390
ProjectErrorUtilities
.VerifyThrowInvalidProject(!(keepMetadata != null && removeMetadata != null), originalItem.KeepMetadataLocation, "KeepAndRemoveMetadataMutuallyExclusive");
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (1)
75
ProjectErrorUtilities
.VerifyThrowInvalidProject(
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1182
ProjectErrorUtilities
.VerifyThrowInvalidProject(allTargets.Length > 0,
BackEnd\Components\RequestBuilder\TargetBuilder.cs (4)
416
ProjectErrorUtilities
.VerifyThrowInvalidProject(
692
ProjectErrorUtilities
.ThrowInvalidProject(targetLocation, "CircularDependency", targetSpecification.TargetName);
704
ProjectErrorUtilities
.ThrowInvalidProject(targetLocation, "CircularDependency", targetSpecification.TargetName);
714
ProjectErrorUtilities
.ThrowInvalidProject(targetLocation, "CircularDependencyInTargetGraph", targetSpecification.TargetName, parentTargetEntry.Name, buildReason, targetSpecification.TargetName, string.Join("<-", targetDependenceChain));
BackEnd\Components\RequestBuilder\TargetEntry.cs (2)
352
ProjectErrorUtilities
.ThrowInvalidProject(_target.ConditionLocation, "TargetConditionHasInvalidMetadataReference", _target.Name, _target.Condition);
938
ProjectErrorUtilities
.VerifyThrowInvalidProject(
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (3)
142
ProjectErrorUtilities
.VerifyThrowInvalidProject((TargetOutputSpecification.Length > 0) || (TargetInputSpecification.Length == 0),
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\Components\RequestBuilder\TaskBuilder.cs (7)
652
ProjectErrorUtilities
.ThrowInvalidProject(_targetChildInstance.Location, "TaskDeclarationOrUsageError", _taskNode.Name);
718
ProjectErrorUtilities
.ThrowInvalidProject(_taskNode.ContinueOnErrorLocation, "InvalidContinueOnErrorAttribute", _taskNode.Name, e.Message);
749
ProjectErrorUtilities
.ThrowInvalidProject(_targetChildInstance.Location, "TaskParametersError", _taskNode.Name, String.Empty);
877
ProjectErrorUtilities
.ThrowInvalidProject(taskLoggingContext.Task.Location, "CircularDependency", taskLoggingContext.TargetLoggingContext.Target.Name);
1100
ProjectErrorUtilities
.VerifyThrowInvalidProject(
1118
ProjectErrorUtilities
.VerifyThrowInvalidProject(
1131
ProjectErrorUtilities
.VerifyThrowInvalidProject(
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (11)
408
ProjectErrorUtilities
.VerifyThrowInvalidProject(
443
ProjectErrorUtilities
.VerifyThrowInvalidProject(
451
ProjectErrorUtilities
.VerifyThrowInvalidProject(
472
ProjectErrorUtilities
.ThrowInvalidProject(
506
ProjectErrorUtilities
.ThrowInvalidProject(
515
ProjectErrorUtilities
.ThrowInvalidProject(
774
ProjectErrorUtilities
.ThrowInvalidProject(
1118
ProjectErrorUtilities
.ThrowInvalidProject(
1161
ProjectErrorUtilities
.ThrowInvalidProject(
1200
ProjectErrorUtilities
.ThrowInvalidProject(
1610
ProjectErrorUtilities
.VerifyThrowInvalidProject(false, _taskLocation, "TaskDeclarationOrUsageError", _taskName);
Construction\ProjectChooseElement.cs (1)
119
ProjectErrorUtilities
.VerifyThrowInvalidProject(nestingDepth <= ProjectParser.MaximumChooseNesting, immediateParent.Location, "ChooseOverflow", ProjectParser.MaximumChooseNesting);
Construction\ProjectElementContainer.cs (1)
502
ProjectErrorUtilities
.VerifyThrowInvalidProject(!XmlElement.HasAttribute(child.XmlElement.Name),
Construction\ProjectMetadataElement.cs (1)
151
ProjectErrorUtilities
.ThrowInvalidProject(parentLocation, "InvalidMetadataAsAttribute", name, parentName);
Construction\ProjectRootElement.cs (1)
1913
ProjectErrorUtilities
.ThrowInvalidProject(sdkLocation, "InvalidSdkFormat", sdks);
Definition\Project.cs (1)
4311
ProjectErrorUtilities
.ThrowInvalidProject(toolsVersionLocation, "UnrecognizedToolsVersion", toolsVersionToUse, toolsVersionList);
Definition\ProjectCollection.cs (1)
355
ProjectErrorUtilities
.ThrowInvalidProject(ElementLocation.Create("MSBUILD"), "InvalidProperty", ex.Message);
Definition\Toolset.cs (1)
1083
ProjectErrorUtilities
.ThrowInvalidProject(
Evaluation\Conditionals\AndExpressionNode.cs (2)
26
ProjectErrorUtilities
.ThrowInvalidProject(
43
ProjectErrorUtilities
.ThrowInvalidProject(
Evaluation\Conditionals\FunctionCallExpressionNode.cs (3)
96
ProjectErrorUtilities
.ThrowInvalidProject(
141
ProjectErrorUtilities
.ThrowInvalidProject(
190
ProjectErrorUtilities
.VerifyThrowInvalidProject(
Evaluation\Conditionals\GenericExpressionNode.cs (1)
66
ProjectErrorUtilities
.ThrowInvalidProject(
Evaluation\Conditionals\MultipleComparisonExpressionNode.cs (2)
42
ProjectErrorUtilities
.VerifyThrowInvalidProject(
90
ProjectErrorUtilities
.VerifyThrowInvalidProject(
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 (12)
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);
289
ProjectErrorUtilities
.ThrowInvalidProject(_elementLocation, "UnexpectedTokenInCondition", _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);
395
ProjectErrorUtilities
.ThrowInvalidProject(_elementLocation, _lexer.GetErrorResource(), expression, errorPosition);
Evaluation\Evaluator.cs (11)
1798
ProjectErrorUtilities
.ThrowInvalidProject(importElement.SdkLocation, "SDKResolverCriticalFailure", e.Message);
1823
ProjectErrorUtilities
.ThrowInvalidProject(importElement.SdkLocation, "CouldNotResolveSdk", sdkReference.ToString());
2002
ProjectErrorUtilities
.ThrowInvalidProject(importLocationInProject, "InvalidAttributeValue", String.Empty, XMakeAttributes.project, XMakeElements.import);
2032
ProjectErrorUtilities
.ThrowInvalidProject(importLocationInProject, "InvalidAttributeValueWithException", EscapingUtilities.UnescapeAll(importExpressionEscapedItem), XMakeAttributes.project, XMakeElements.import, ex.Message);
2077
ProjectErrorUtilities
.ThrowInvalidProject(importLocationInProject, "InvalidAttributeValueWithException", importFileUnescaped, XMakeAttributes.project, XMakeElements.import, ex.Message);
2106
ProjectErrorUtilities
.ThrowInvalidProject(importLocationInProject, "ImportIntroducesCircularity", importFileUnescaped, importedBy);
2241
ProjectErrorUtilities
.ThrowInvalidProject(importLocationInProject, "ImportedProjectNotFound",
2294
ProjectErrorUtilities
.ThrowInvalidProject(importLocationInProject, "InvalidImportedProjectFile",
2494
ProjectErrorUtilities
.ThrowInvalidProject(importElement.Location, "InvalidAttributeValueWithException", importExpandedWithDefaultPath, XMakeAttributes.project, XMakeElements.import, ex.Message);
2524
ProjectErrorUtilities
.ThrowInvalidProject(importElement.ProjectLocation, "ImportedProjectFromExtensionsPathNotFound",
2585
ProjectErrorUtilities
.ThrowInvalidProject(importLocationInProject, "ImportedProjectFromVSDistribution", path);
Evaluation\Expander.cs (54)
863
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, AssemblyResources.GetString("InvalidFunctionPropertyExpressionDetailMismatchedParenthesis"));
878
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, AssemblyResources.GetString("InvalidFunctionPropertyExpressionDetailMismatchedQuote"));
1029
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "CannotExpandItemMetadata", expression, ex.Message);
1393
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", propertyBody, String.Empty);
1404
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", propertyBody, AssemblyResources.GetString("InvalidFunctionPropertyExpressionDetailMismatchedSquareBrackets"));
1426
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", propertyBody, String.Empty);
1672
ProjectErrorUtilities
.VerifyThrowInvalidProject(firstAtSignOffset == lastAtSignOffset, elementLocation, "InvalidRegistryPropertyExpression", "$(" + registryExpression + ")", String.Empty);
1731
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "InvalidRegistryPropertyExpression", "$(" + registryExpression + ")", ex.Message);
1879
ProjectErrorUtilities
.VerifyThrowInvalidProject(match.Value == expression, elementLocation, "EmbeddedItemVectorCannotBeItemized", expression);
2006
ProjectErrorUtilities
.VerifyThrowInvalidProject(!string.IsNullOrEmpty(expressionCapture.ItemType), elementLocation, "InvalidFunctionPropertyExpression");
2136
ProjectErrorUtilities
.VerifyThrowInvalidProject(match.Captures.Count > 0, elementLocation, "InvalidFunctionPropertyExpression");
2275
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "UnknownItemFunction", functionName);
2288
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "UnknownItemFunction", functionName);
2294
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "UnknownItemFunction", functionName);
2346
ProjectErrorUtilities
.VerifyThrowInvalidProject(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2373
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Key, e.Message);
2394
ProjectErrorUtilities
.VerifyThrowInvalidProject(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2426
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Key, e.Message);
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);
2510
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Key, e.Message);
2541
ProjectErrorUtilities
.VerifyThrowInvalidProject(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2583
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Key, e.Message);
2608
ProjectErrorUtilities
.VerifyThrowInvalidProject(arguments?.Length == 1, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2625
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
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);
2823
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
2842
ProjectErrorUtilities
.VerifyThrowInvalidProject(arguments?.Length == 2, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2858
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
2875
ProjectErrorUtilities
.VerifyThrowInvalidProject(arguments?.Length == 2, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2891
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
2908
ProjectErrorUtilities
.VerifyThrowInvalidProject(arguments?.Length == 2, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2927
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
3055
ProjectErrorUtilities
.VerifyThrowInvalidProject(match.Groups[RegularExpressions.ItemSpecificationGroup].Length == 0, _elementLocation, "QualifiedMetadataInTransformNotAllowed", match.Value, name);
3077
ProjectErrorUtilities
.ThrowInvalidProject(_elementLocation, "CannotEvaluateItemMetadata", name, ex.Message);
3343
ProjectErrorUtilities
.VerifyThrowInvalidProject(!expressionRoot.IsEmpty, elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty);
3357
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "InvalidFunctionStaticMethodSyntax", expressionFunction, String.Empty);
3371
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "InvalidFunctionStaticMethodSyntax", expressionFunction, String.Empty);
3382
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "InvalidFunctionTypeUnavailable", expressionFunction, typeName);
3393
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, AssemblyResources.GetString("InvalidFunctionPropertyExpressionDetailMismatchedSquareBrackets"));
3424
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty);
3456
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "InvalidFunctionMethodUnavailable", _methodMethodName, _receiverType.FullName);
3473
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "InvalidFunctionMethodUnavailable", _methodMethodName, _receiverType.FullName);
3589
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", partiallyEvaluated, ex.Message.Replace("\r\n", " "));
3660
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", partiallyEvaluated, ex.InnerException.Message.Replace("\r\n", " "));
3671
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "InvalidFunctionStaticMethodSyntax", _expression, ex.Message.Replace("Microsoft.Build.Evaluation.IntrinsicFunctions.", "[MSBuild]::"));
3677
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", partiallyEvaluated, ex.Message);
5272
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, AssemblyResources.GetString("InvalidFunctionPropertyExpressionDetailMismatchedParenthesis"));
5324
ProjectErrorUtilities
.VerifyThrowInvalidProject(netPropertyName.Length > 0, elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty);
5343
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty);
Evaluation\ProjectParser.cs (36)
134
ProjectErrorUtilities
.ThrowInvalidProject(ElementLocation.Create(_document.FullPath), "NoRootProjectElement", XMakeElements.project);
136
ProjectErrorUtilities
.VerifyThrowInvalidProject(element.Name != XMakeElements.visualStudioProject, element.Location, "ProjectUpgradeNeeded", _project.FullPath);
137
ProjectErrorUtilities
.VerifyThrowInvalidProject(element.LocalName == XMakeElements.project, element.Location, "UnrecognizedElement", element.Name);
142
ProjectErrorUtilities
.ThrowInvalidProject(element.Location, "ProjectMustBeInMSBuildXmlNamespace",
203
ProjectErrorUtilities
.ThrowInvalidProject(childElement.Location, "ErrorWarningMessageNotSupported", childElement.Name);
226
ProjectErrorUtilities
.VerifyThrowInvalidProject(!XMakeElements.ReservedItemNames.Contains(childElement.Name) && !ReservedPropertyNames.IsReservedProperty(childElement.Name), childElement.Location, "CannotModifyReservedProperty", childElement.Name);
291
ProjectErrorUtilities
.ThrowInvalidProject(errorAttribute.Location, "InvalidAttributeExclusive");
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);
310
ProjectErrorUtilities
.VerifyThrowInvalidProject(!XMakeElements.ReservedItemNames.Contains(itemType), element.Location, "CannotModifyReservedItem", itemType);
399
ProjectErrorUtilities
.VerifyThrowInvalidProject(!(parent is ProjectItemElement) || ((ProjectItemElement)parent).Remove.Length == 0, element.Location, "ChildElementsBelowRemoveNotAllowed", element.Name);
400
ProjectErrorUtilities
.VerifyThrowInvalidProject(!FileUtilities.ItemSpecModifiers.IsItemSpecModifier(element.Name), element.Location, "ItemSpecModifierCannotBeCustomMetadata", element.Name);
401
ProjectErrorUtilities
.VerifyThrowInvalidProject(!XMakeElements.ReservedItemNames.Contains(element.Name), element.Location, "CannotModifyReservedItemMetadata", element.Name);
409
ProjectErrorUtilities
.VerifyThrowInvalidProject(!containsItemVector, element.Location, "MetadataDefinitionCannotContainItemVectorExpression", metadatum.Value, metadatum.Name);
429
ProjectErrorUtilities
.VerifyThrowInvalidProject(
449
ProjectErrorUtilities
.VerifyThrowInvalidProject(
511
ProjectErrorUtilities
.VerifyThrowInvalidProject(element.GetAttribute(XMakeAttributes.taskName).Length > 0, element.Location, "ProjectTaskNameEmpty");
516
ProjectErrorUtilities
.VerifyThrowInvalidProject(
583
ProjectErrorUtilities
.ThrowInvalidProject(element.GetAttributeLocation(XMakeAttributes.name), "NameInvalid", targetName, targetName[indexOfSpecialCharacter]);
598
ProjectErrorUtilities
.ThrowInvalidProject(onError.Location, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name);
607
ProjectErrorUtilities
.ThrowInvalidProject(onError.Location, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name);
624
ProjectErrorUtilities
.ThrowInvalidProject(childElement.Location, "ItemDefinitionGroupNotLegalInsideTarget", childElement.Name);
630
ProjectErrorUtilities
.ThrowInvalidProject(onError.Location, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name);
635
ProjectErrorUtilities
.ThrowInvalidProject(childElement.Location, "PropertyOutsidePropertyGroupInTarget", childElement.Name, childElement.ParentNode.Name);
655
ProjectErrorUtilities
.VerifyThrowInvalidProject(
668
ProjectErrorUtilities
.VerifyThrowInvalidProject(childElement.Name == XMakeElements.output, childElement.Location, "UnrecognizedChildElement", childElement.Name, task.Name);
690
ProjectErrorUtilities
.VerifyThrowInvalidProject(
699
ProjectErrorUtilities
.VerifyThrowInvalidProject(String.IsNullOrWhiteSpace(propertyNameAttribute?.Value) || !ReservedPropertyNames.IsReservedProperty(propertyNameAttribute.Value), element.Location, "CannotModifyReservedProperty", propertyNameAttribute?.Value);
776
ProjectErrorUtilities
.VerifyThrowInvalidProject(nestingDepth <= MaximumChooseNesting, element.Location, "ChooseOverflow", MaximumChooseNesting);
788
ProjectErrorUtilities
.VerifyThrowInvalidProject(!foundOtherwise, childElement.Location, "WhenNotAllowedAfterOtherwise");
794
ProjectErrorUtilities
.VerifyThrowInvalidProject(!foundOtherwise, childElement.Location, "MultipleOtherwise");
807
ProjectErrorUtilities
.VerifyThrowInvalidProject(foundWhen, element.Location, "ChooseMustContainWhen");
885
ProjectErrorUtilities
.VerifyThrowInvalidProject(!_seenProjectExtensions, element.Location, "DuplicateProjectExtensions");
899
ProjectErrorUtilities
.ThrowInvalidProject(element.Location, "InvalidSdkElementName", element.Name);
Graph\ProjectGraph.cs (1)
677
ProjectErrorUtilities
.VerifyThrowInvalidProject(
Instance\ProjectInstance.cs (1)
3129
ProjectErrorUtilities
.ThrowInvalidProject(toolsVersionLocation, "UnrecognizedToolsVersion", toolsVersionToUse, toolsVersionList);
Instance\ProjectPropertyInstance.cs (2)
334
ProjectErrorUtilities
.VerifyThrowInvalidProject(!XMakeElements.ReservedItemNames.Contains(name), location, "CannotModifyReservedProperty", name);
335
ProjectErrorUtilities
.VerifyThrowInvalidProject(mayBeReserved || !ReservedPropertyNames.IsReservedProperty(name), location, "CannotModifyReservedProperty", name);
Instance\TaskFactories\AssemblyTaskFactory.cs (11)
279
ProjectErrorUtilities
.VerifyThrowInvalidProject(_loadedType != null, elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, String.Empty);
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);
481
ProjectErrorUtilities
.ThrowInvalidProject(
499
ProjectErrorUtilities
.ThrowInvalidProject(
Instance\TaskRegistry.cs (16)
319
ProjectErrorUtilities
.VerifyThrowInvalidProject(
344
ProjectErrorUtilities
.VerifyThrowInvalidProject(
353
ProjectErrorUtilities
.VerifyThrowInvalidProject(
420
ProjectErrorUtilities
.ThrowInvalidProject(projectUsingTaskXml.Location, "InvalidAttributeValueWithException", assemblyFile, XMakeAttributes.assemblyFile, XMakeElements.usingTask, ex.Message);
1337
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, _taskFactoryWrapperInstance.Name, message);
1425
ProjectErrorUtilities
.ThrowInvalidProject(elementLocation, "CouldNotFindFactory", TaskFactoryAttributeName, taskFactoryLoadInfo.AssemblyLocation);
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);
1647
ProjectErrorUtilities
.ThrowInvalidProject(
1687
ProjectErrorUtilities
.VerifyThrowInvalidProject(
1712
ProjectErrorUtilities
.VerifyThrowInvalidProject(
1726
ProjectErrorUtilities
.ThrowInvalidProject(
1739
ProjectErrorUtilities
.ThrowInvalidProject(
1752
ProjectErrorUtilities
.ThrowInvalidProject(
Utilities\EngineFileUtilities.cs (6)
450
ProjectErrorUtilities
.ThrowInvalidProject(
465
ProjectErrorUtilities
.ThrowInvalidProject(
477
ProjectErrorUtilities
.ThrowInvalidProject(
490
ProjectErrorUtilities
.ThrowInvalidProject(
500
ProjectErrorUtilities
.ThrowInvalidProject(
510
ProjectErrorUtilities
.ThrowInvalidProject(
Xml\ProjectXmlUtilities.cs (5)
73
ProjectErrorUtilities
.ThrowInvalidProject(child.Location, "InvalidChildElementDueToDuplication", child.Name, child.ParentNode.Name);
81
ProjectErrorUtilities
.ThrowInvalidProject(location, "UnrecognizedChildElement", name, parentName);
137
ProjectErrorUtilities
.VerifyThrowInvalidProject(
177
ProjectErrorUtilities
.VerifyThrowInvalidProject(element.GetAttribute(attributeName).Length > 0, element.Location, "MissingRequiredAttribute", attributeName, element.Name);
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]);