266 references to ProjectErrorUtilities
Microsoft.Build (266)
BackEnd\BuildManager\BuildManager.cs (1)
2481ProjectErrorUtilities.VerifyThrowInvalidProject(entryPointNode.ProjectInstance.Targets.Count > 0, entryPointNode.ProjectInstance.ProjectFileLocation, "NoTargetSpecified");
BackEnd\BuildManager\MultiThreadedStrictModeScope.cs (2)
263ProjectErrorUtilities.ThrowInvalidProject(location, 293ProjectErrorUtilities.ThrowInvalidProject(location,
BackEnd\Components\RequestBuilder\BatchingEngine.cs (3)
154ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotReferenceItemMetadataWithoutItemName", unqualifiedMetadataName); 258ProjectErrorUtilities.VerifyThrowInvalidProject( 420ProjectErrorUtilities.ThrowInvalidProject(elementLocation,
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (2)
400ProjectErrorUtilities.VerifyThrowInvalidProject(!(keepMetadata != null && removeMetadata != null), originalItem.KeepMetadataLocation, "KeepAndRemoveMetadataMutuallyExclusive"); 663ProjectErrorUtilities.VerifyThrowInvalidProject(
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (1)
78ProjectErrorUtilities.VerifyThrowInvalidProject(
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1241ProjectErrorUtilities.VerifyThrowInvalidProject(allTargets.Length > 0,
BackEnd\Components\RequestBuilder\TargetBuilder.cs (4)
422ProjectErrorUtilities.VerifyThrowInvalidProject( 720ProjectErrorUtilities.ThrowInvalidProject(targetLocation, "CircularDependency", targetSpecification.TargetName); 732ProjectErrorUtilities.ThrowInvalidProject(targetLocation, "CircularDependency", targetSpecification.TargetName); 742ProjectErrorUtilities.ThrowInvalidProject(targetLocation, "CircularDependencyInTargetGraph", targetSpecification.TargetName, parentTargetEntry.Name, buildReason, targetSpecification.TargetName, string.Join("<-", targetDependenceChain));
BackEnd\Components\RequestBuilder\TargetEntry.cs (2)
348ProjectErrorUtilities.ThrowInvalidProject(_target.ConditionLocation, "TargetConditionHasInvalidMetadataReference", _target.Name, _target.Condition); 929ProjectErrorUtilities.VerifyThrowInvalidProject(
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (3)
144ProjectErrorUtilities.VerifyThrowInvalidProject((TargetOutputSpecification.Length > 0) || (TargetInputSpecification.Length == 0), 1138ProjectErrorUtilities.VerifyThrowInvalidProject(input.AsSpan().IndexOfAny(MSBuildConstants.InvalidPathChars) < 0, _project.ProjectFileLocation, "IllegalCharactersInFileOrDirectory", input, inputItemName); 1139ProjectErrorUtilities.VerifyThrowInvalidProject(output.AsSpan().IndexOfAny(MSBuildConstants.InvalidPathChars) < 0, _project.ProjectFileLocation, "IllegalCharactersInFileOrDirectory", output, outputItemName);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (7)
711ProjectErrorUtilities.ThrowInvalidProject(_targetChildInstance.Location, "TaskDeclarationOrUsageError", _taskNode.Name); 774ProjectErrorUtilities.ThrowInvalidProject(_taskNode.ContinueOnErrorLocation, "InvalidContinueOnErrorAttribute", _taskNode.Name, e.Message); 805ProjectErrorUtilities.ThrowInvalidProject(_targetChildInstance.Location, "TaskParametersError", _taskNode.Name, String.Empty); 947ProjectErrorUtilities.ThrowInvalidProject(taskLoggingContext.Task.Location, "CircularDependency", taskLoggingContext.TargetLoggingContext.Target.Name); 1171ProjectErrorUtilities.VerifyThrowInvalidProject( 1189ProjectErrorUtilities.VerifyThrowInvalidProject( 1202ProjectErrorUtilities.VerifyThrowInvalidProject(
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (7)
145ProjectErrorUtilities.ThrowInvalidProject(location, "SdkResolverNoDllOrManifest", subfolder.FullName); 208ProjectErrorUtilities.ThrowInvalidProject(location, "SdkResolverDllInManifestMissing", pathToManifest, string.Empty); 214ProjectErrorUtilities.ThrowInvalidProject(location, e, "SdkResolverManifestInvalid", pathToManifest, e.Message); 219ProjectErrorUtilities.ThrowInvalidProject(location, "SdkResolverDllInManifestMissing", pathToManifest, manifest.Path); 320ProjectErrorUtilities.ThrowInvalidProject(location, e, "CouldNotLoadSdkResolverAssembly", resolverPath, e.Message); 337ProjectErrorUtilities.ThrowInvalidProject(location, e.InnerException ?? e, "CouldNotLoadSdkResolver", type.Name, message); 341ProjectErrorUtilities.ThrowInvalidProject(location, e, "CouldNotLoadSdkResolver", type.Name, e.Message);
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
293ProjectErrorUtilities.ThrowInvalidProject(
BackEnd\Shared\BuildRequestConfiguration.cs (1)
1201ProjectErrorUtilities.ThrowInvalidProject(ElementLocation.Create(data.ProjectFullPath), "ProjectUpgradeNeededToVcxProj", data.ProjectFullPath);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (15)
346ProjectErrorUtilities.ThrowInvalidProject(_taskLocation, "ReflectiveTaskExecutionNotSupported", _taskName); 504ProjectErrorUtilities.ThrowInvalidProject(_taskLocation, "ReflectiveTaskExecutionNotSupported", _taskName); 567ProjectErrorUtilities.ThrowInvalidProject(_taskLocation, "ReflectiveTaskExecutionNotSupported", _taskName); 624ProjectErrorUtilities.VerifyThrowInvalidProject( 659ProjectErrorUtilities.VerifyThrowInvalidProject( 667ProjectErrorUtilities.VerifyThrowInvalidProject( 691ProjectErrorUtilities.ThrowInvalidProject( 725ProjectErrorUtilities.ThrowInvalidProject( 734ProjectErrorUtilities.ThrowInvalidProject( 1096ProjectErrorUtilities.ThrowInvalidProject( 1456ProjectErrorUtilities.ThrowInvalidProject( 1530ProjectErrorUtilities.ThrowInvalidProject( 1662ProjectErrorUtilities.ThrowInvalidProject( 1711ProjectErrorUtilities.ThrowInvalidProject( 2184ProjectErrorUtilities.ThrowInvalidProject(_taskLocation, "TaskDeclarationOrUsageError", _taskName);
Construction\ProjectChooseElement.cs (1)
115ProjectErrorUtilities.VerifyThrowInvalidProject(nestingDepth <= ProjectParser.MaximumChooseNesting, immediateParent.Location, "ChooseOverflow", ProjectParser.MaximumChooseNesting);
Construction\ProjectElementContainer.cs (1)
502ProjectErrorUtilities.VerifyThrowInvalidProject(!XmlElement.HasAttribute(child.XmlElement.Name),
Construction\ProjectMetadataElement.cs (1)
154ProjectErrorUtilities.ThrowInvalidProject(parentLocation, "InvalidMetadataAsAttribute", name, parentName);
Construction\ProjectRootElement.cs (5)
1944ProjectErrorUtilities.ThrowInvalidProject(sdkLocation, "InvalidSdkFormat", sdks); 2057ProjectErrorUtilities.ThrowInvalidProject(ElementLocation.Create(projectFile), "ProjectUpgradeNeededToVcxProj", projectFile); 2069ProjectErrorUtilities.ThrowInvalidProject(ElementLocation.Create(projectFile), ex, "InvalidProjectFile", ex.Message); 2124ProjectErrorUtilities.ThrowInvalidProject(location, ex, "InvalidProjectFile", ex.Message); 2148ProjectErrorUtilities.ThrowInvalidProject(location, "InvalidProjectFile", ex.Message);
Construction\Solution\ProjectInSolution.cs (2)
420ProjectErrorUtilities.VerifyThrowInvalidProject( 468ProjectErrorUtilities.VerifyThrowInvalidProject(
Construction\Solution\SolutionFile.cs (29)
313ProjectErrorUtilities.ThrowInvalidProject( 328ProjectErrorUtilities.ThrowInvalidProject( 335ProjectErrorUtilities.ThrowInvalidProject( 579ProjectErrorUtilities.ThrowInvalidProject( 590ProjectErrorUtilities.VerifyThrowInvalidProject( 622ProjectErrorUtilities.ThrowInvalidProject( 636ProjectErrorUtilities.ThrowInvalidProject( 654ProjectErrorUtilities.ThrowInvalidProject( 676ProjectErrorUtilities.ThrowInvalidProject( 750ProjectErrorUtilities.ThrowInvalidProject(ElementLocation.Create(_solutionFile), "InvalidProjectFile", e.Message); 895ProjectErrorUtilities.VerifyThrowInvalidProject( 917ProjectErrorUtilities.ThrowInvalidProject( 962ProjectErrorUtilities.ThrowInvalidProject( 1010ProjectErrorUtilities.ThrowInvalidProject( 1021ProjectErrorUtilities.VerifyThrowInvalidProject( 1084ProjectErrorUtilities.VerifyThrowInvalidProject( 1106ProjectErrorUtilities.VerifyThrowInvalidProject( 1136ProjectErrorUtilities.VerifyThrowInvalidProject( 1324ProjectErrorUtilities.VerifyThrowInvalidProject( 1332ProjectErrorUtilities.VerifyThrowInvalidProject( 1524ProjectErrorUtilities.VerifyThrowInvalidProject( 1580ProjectErrorUtilities.ThrowInvalidProject(ElementLocation.Create(FullPath), "ProjectUpgradeNeededToVcxProj", proj.RelativePath); 1627ProjectErrorUtilities.VerifyThrowInvalidProject( 1638ProjectErrorUtilities.VerifyThrowInvalidProject( 1684ProjectErrorUtilities.VerifyThrowInvalidProject( 1700ProjectErrorUtilities.VerifyThrowInvalidProject( 1717ProjectErrorUtilities.VerifyThrowInvalidProject( 1769ProjectErrorUtilities.VerifyThrowInvalidProject( 1819ProjectErrorUtilities.VerifyThrowInvalidProject(
Construction\Solution\SolutionProjectGenerator.cs (5)
286ProjectErrorUtilities.VerifyThrowInvalidProject( 751ProjectErrorUtilities.VerifyThrowInvalidProject( 1224ProjectErrorUtilities.ThrowInvalidProject( 1294ProjectErrorUtilities.ThrowInvalidProject( 1390ProjectErrorUtilities.ThrowInvalidProject(
Definition\Project.cs (1)
4201ProjectErrorUtilities.ThrowInvalidProject(toolsVersionLocation, "UnrecognizedToolsVersion", toolsVersionToUse, toolsVersionList);
Definition\ProjectCollection.cs (1)
449ProjectErrorUtilities.ThrowInvalidProject(ElementLocation.Create("MSBUILD"), "InvalidProperty", ex.Message);
Definition\Toolset.cs (2)
957ProjectErrorUtilities.ThrowInvalidProject(ElementLocation.CreateFrom(currentTasksFile, e), 991ProjectErrorUtilities.ThrowInvalidProject(
Evaluation\Conditionals\AndExpressionNode.cs (2)
23ProjectErrorUtilities.ThrowInvalidProject( 40ProjectErrorUtilities.ThrowInvalidProject(
Evaluation\Conditionals\FunctionCallExpressionNode.cs (3)
96ProjectErrorUtilities.ThrowInvalidProject( 141ProjectErrorUtilities.ThrowInvalidProject( 190ProjectErrorUtilities.VerifyThrowInvalidProject(
Evaluation\Conditionals\GenericExpressionNode.cs (1)
65ProjectErrorUtilities.ThrowInvalidProject(
Evaluation\Conditionals\MultipleComparisonExpressionNode.cs (2)
41ProjectErrorUtilities.VerifyThrowInvalidProject( 89ProjectErrorUtilities.VerifyThrowInvalidProject(
Evaluation\Conditionals\NotExpressionNode.cs (1)
23ProjectErrorUtilities.ThrowInvalidProject(
Evaluation\Conditionals\NumericComparisonExpressionNode.cs (1)
47ProjectErrorUtilities.ThrowInvalidProject(
Evaluation\Conditionals\OrExpressionNode.cs (2)
23ProjectErrorUtilities.ThrowInvalidProject( 40ProjectErrorUtilities.ThrowInvalidProject(
Evaluation\Conditionals\Parser.cs (12)
111ProjectErrorUtilities.ThrowInvalidProject(elementLocation, _lexer.GetErrorResource(), expression, errorPosition, _lexer.UnexpectedlyFound); 117ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "UnexpectedTokenInCondition", expression, _lexer.IsNextString(), errorPosition); 181ProjectErrorUtilities.ThrowInvalidProject(_elementLocation, "UnexpectedTokenInCondition", expression, _lexer.IsNextString(), errorPosition); 203ProjectErrorUtilities.ThrowInvalidProject(_elementLocation, "UnexpectedTokenInCondition", expression, _lexer.IsNextString(), errorPosition); 225ProjectErrorUtilities.ThrowInvalidProject(_elementLocation, "UnexpectedTokenInCondition", expression, _lexer.IsNextString(), errorPosition); 288ProjectErrorUtilities.ThrowInvalidProject(_elementLocation, "UnexpectedTokenInCondition", _lexer.IsNextString(), errorPosition); 296ProjectErrorUtilities.ThrowInvalidProject(_elementLocation, "UnexpectedTokenInCondition", expression, _lexer.IsNextString(), errorPosition); 311ProjectErrorUtilities.ThrowInvalidProject(_elementLocation, "UnexpectedTokenInCondition", expression, _lexer.IsNextString(), errorPosition); 321ProjectErrorUtilities.ThrowInvalidProject(_elementLocation, "UnexpectedTokenInCondition", expression, _lexer.IsNextString(), errorPosition); 329ProjectErrorUtilities.ThrowInvalidProject(_elementLocation, "UnexpectedTokenInCondition", expression, _lexer.IsNextString(), errorPosition); 390ProjectErrorUtilities.ThrowInvalidProject(_elementLocation, _lexer.GetErrorResource(), expression, errorPosition, _lexer.UnexpectedlyFound); 394ProjectErrorUtilities.ThrowInvalidProject(_elementLocation, _lexer.GetErrorResource(), expression, errorPosition);
Evaluation\Evaluator.cs (11)
1973ProjectErrorUtilities.ThrowInvalidProject(importElement.SdkLocation, "SDKResolverCriticalFailure", e.Message); 1998ProjectErrorUtilities.ThrowInvalidProject(importElement.SdkLocation, "CouldNotResolveSdk", sdkReference.ToString()); 2202ProjectErrorUtilities.ThrowInvalidProject(importLocationInProject, "InvalidAttributeValue", string.Empty, XMakeAttributes.project, XMakeElements.import); 2232ProjectErrorUtilities.ThrowInvalidProject(importLocationInProject, "InvalidAttributeValueWithException", EscapingUtilities.UnescapeAll(importExpressionEscapedItem), XMakeAttributes.project, XMakeElements.import, ex.Message); 2277ProjectErrorUtilities.ThrowInvalidProject(importLocationInProject, "InvalidAttributeValueWithException", importFileUnescaped, XMakeAttributes.project, XMakeElements.import, ex.Message); 2306ProjectErrorUtilities.ThrowInvalidProject(importLocationInProject, "ImportIntroducesCircularity", importFileUnescaped, importedBy); 2441ProjectErrorUtilities.ThrowInvalidProject(importLocationInProject, "ImportedProjectNotFound", 2494ProjectErrorUtilities.ThrowInvalidProject(importLocationInProject, "InvalidImportedProjectFile", 2699ProjectErrorUtilities.ThrowInvalidProject(importElement.Location, "InvalidAttributeValueWithException", importExpandedWithDefaultPath, XMakeAttributes.project, XMakeElements.import, ex.Message); 2729ProjectErrorUtilities.ThrowInvalidProject(importElement.ProjectLocation, "ImportedProjectFromExtensionsPathNotFound", 2925ProjectErrorUtilities.ThrowInvalidProject(importLocationInProject, "ImportedProjectFromVSDistribution", path);
Evaluation\Expander.cs (2)
618ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, AssemblyResources.GetString("InvalidFunctionPropertyExpressionDetailMismatchedParenthesis")); 633ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, AssemblyResources.GetString("InvalidFunctionPropertyExpressionDetailMismatchedQuote"));
Evaluation\Expander.Function.cs (15)
232ProjectErrorUtilities.VerifyThrowInvalidProject(!expressionRoot.IsEmpty, elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty); 246ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionStaticMethodSyntax", expressionFunction, String.Empty); 260ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionStaticMethodSyntax", expressionFunction, String.Empty); 271ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionTypeUnavailable", expressionFunction, typeName); 282ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, AssemblyResources.GetString("InvalidFunctionPropertyExpressionDetailMismatchedSquareBrackets")); 313ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty); 381ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionMethodUnavailable", _methodMethodName, _receiverType.FullName); 391ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionMethodUnavailable", _methodMethodName, _receiverType.FullName); 527ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", partiallyEvaluated, ex.Message.Replace("\r\n", " ")); 598ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", partiallyEvaluated, ex.InnerException.Message.Replace("\r\n", " ")); 609ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionStaticMethodSyntax", _expression, ex.Message.Replace("Microsoft.Build.Evaluation.IntrinsicFunctions.", "[MSBuild]::")); 615ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", partiallyEvaluated, ex.Message); 921ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, AssemblyResources.GetString("InvalidFunctionPropertyExpressionDetailMismatchedParenthesis")); 973ProjectErrorUtilities.VerifyThrowInvalidProject(netPropertyName.Length > 0, elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty); 992ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty);
Evaluation\Expander.ItemExpander.cs (4)
222ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "UnknownItemFunction", functionName); 349ProjectErrorUtilities.VerifyThrowInvalidProject( 481ProjectErrorUtilities.VerifyThrowInvalidProject(!itemVector.ItemType.IsNullOrEmpty(), elementLocation, "InvalidFunctionPropertyExpression"); 535ProjectErrorUtilities.VerifyThrowInvalidProject(captures.Count > 0, elementLocation, "InvalidFunctionPropertyExpression");
Evaluation\Expander.ItemExpander.Transforms.cs (25)
103ProjectErrorUtilities.VerifyThrowInvalidProject(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length); 132ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Value, e.Message); 158ProjectErrorUtilities.VerifyThrowInvalidProject(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length); 192ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Value, e.Message); 212ProjectErrorUtilities.VerifyThrowInvalidProject(arguments?.Length == 1, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length); 241ProjectErrorUtilities.VerifyThrowInvalidProject(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length); 288ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Value, e.Message); 325ProjectErrorUtilities.VerifyThrowInvalidProject(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length); 369ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Value, e.Message); 400ProjectErrorUtilities.VerifyThrowInvalidProject(arguments?.Length == 1, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length); 417ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message); 484ProjectErrorUtilities.VerifyThrowInvalidProject(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length); 508ProjectErrorUtilities.VerifyThrowInvalidProject(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length); 527ProjectErrorUtilities.VerifyThrowInvalidProject(arguments?.Length == 1, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length); 723ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "QualifiedMetadataInTransformNotAllowed", matchValue, name); 857ProjectErrorUtilities.VerifyThrowInvalidProject(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length); 879ProjectErrorUtilities.VerifyThrowInvalidProject(arguments?.Length == 1, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length); 894ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message); 918ProjectErrorUtilities.VerifyThrowInvalidProject(arguments?.Length == 2, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length); 934ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message); 956ProjectErrorUtilities.VerifyThrowInvalidProject(arguments?.Length == 2, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length); 972ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message); 994ProjectErrorUtilities.VerifyThrowInvalidProject(arguments?.Length == 2, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length); 1013ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message); 1085ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", match.Name, ex.Message);
Evaluation\Expander.MetadataExpander.cs (1)
88ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotExpandItemMetadata", expression, ex.Message);
Evaluation\Expander.PropertyExpander.cs (5)
428ProjectErrorUtilities.ThrowInvalidProject(_elementLocation, "InvalidFunctionPropertyExpression", propertyBody, String.Empty); 439ProjectErrorUtilities.ThrowInvalidProject(_elementLocation, "InvalidFunctionPropertyExpression", propertyBody, AssemblyResources.GetString("InvalidFunctionPropertyExpressionDetailMismatchedSquareBrackets")); 454ProjectErrorUtilities.ThrowInvalidProject(_elementLocation, "InvalidFunctionPropertyExpression", propertyBody, string.Empty); 693ProjectErrorUtilities.VerifyThrowInvalidProject(firstAtSignOffset == lastAtSignOffset, _elementLocation, "InvalidRegistryPropertyExpression", "$(" + registryExpression + ")", String.Empty); 752ProjectErrorUtilities.ThrowInvalidProject(_elementLocation, "InvalidRegistryPropertyExpression", $"$({registryExpression})", ex.Message);
Evaluation\LazyItemEvaluator.RemoveOperation.cs (1)
27ProjectErrorUtilities.VerifyThrowInvalidProject(
Evaluation\ProjectParser.cs (36)
139ProjectErrorUtilities.ThrowInvalidProject(ElementLocation.Create(_document.FullPath), "NoRootProjectElement", XMakeElements.project); 141ProjectErrorUtilities.VerifyThrowInvalidProject(element.Name != XMakeElements.visualStudioProject, element.Location, "ProjectUpgradeNeeded", _project.FullPath); 142ProjectErrorUtilities.VerifyThrowInvalidProject(element.LocalName == XMakeElements.project, element.Location, "UnrecognizedElement", element.Name); 147ProjectErrorUtilities.ThrowInvalidProject(element.Location, "ProjectMustBeInMSBuildXmlNamespace", 208ProjectErrorUtilities.ThrowInvalidProject(childElement.Location, "ErrorWarningMessageNotSupported", childElement.Name); 235ProjectErrorUtilities.VerifyThrowInvalidProject(!XMakeElements.ReservedItemNames.Contains(childElement.Name) && !ReservedPropertyNames.IsReservedProperty(childElement.Name), childElement.Location, "CannotModifyReservedProperty", childElement.Name); 300ProjectErrorUtilities.ThrowInvalidProject(errorAttribute.Location, "InvalidAttributeExclusive"); 304ProjectErrorUtilities.VerifyThrowInvalidProject(exclusiveAttributeCount == 1 || belowTarget, element.Location, "IncludeRemoveOrUpdate", exclusiveItemOperation, itemType); 310ProjectErrorUtilities.VerifyThrowInvalidProject(include.Length > 0 || element.Attributes[XMakeAttributes.include] == null, element.Location, "MissingRequiredAttribute", XMakeAttributes.include, itemType); 313ProjectErrorUtilities.VerifyThrowInvalidProject(remove.Length > 0 || element.Attributes[XMakeAttributes.remove] == null, element.Location, "MissingRequiredAttribute", XMakeAttributes.remove, itemType); 316ProjectErrorUtilities.VerifyThrowInvalidProject(update.Length > 0 || element.Attributes[XMakeAttributes.update] == null, element.Location, "MissingRequiredAttribute", XMakeAttributes.update, itemType); 319ProjectErrorUtilities.VerifyThrowInvalidProject(!XMakeElements.ReservedItemNames.Contains(itemType), element.Location, "CannotModifyReservedItem", itemType); 411ProjectErrorUtilities.VerifyThrowInvalidProject(!(parent is ProjectItemElement) || ((ProjectItemElement)parent).Remove.Length == 0, element.Location, "ChildElementsBelowRemoveNotAllowed", element.Name); 412ProjectErrorUtilities.VerifyThrowInvalidProject(!ItemSpecModifiers.IsItemSpecModifier(element.Name), element.Location, "ItemSpecModifierCannotBeCustomMetadata", element.Name); 413ProjectErrorUtilities.VerifyThrowInvalidProject(!XMakeElements.ReservedItemNames.Contains(element.Name), element.Location, "CannotModifyReservedItemMetadata", element.Name); 421ProjectErrorUtilities.VerifyThrowInvalidProject(!containsItemVector, element.Location, "MetadataDefinitionCannotContainItemVectorExpression", metadatum.Value, metadatum.Name); 448ProjectErrorUtilities.ThrowInvalidProject( 468ProjectErrorUtilities.VerifyThrowInvalidProject( 530ProjectErrorUtilities.VerifyThrowInvalidProject(element.GetAttribute(XMakeAttributes.taskName).Length > 0, element.Location, "ProjectTaskNameEmpty"); 535ProjectErrorUtilities.VerifyThrowInvalidProject( 606ProjectErrorUtilities.ThrowInvalidProject(element.GetAttributeLocation(XMakeAttributes.name), "NameInvalid", targetName, targetName[indexOfSpecialCharacter]); 621ProjectErrorUtilities.ThrowInvalidProject(onError.Location, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name); 630ProjectErrorUtilities.ThrowInvalidProject(onError.Location, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name); 647ProjectErrorUtilities.ThrowInvalidProject(childElement.Location, "ItemDefinitionGroupNotLegalInsideTarget", childElement.Name); 653ProjectErrorUtilities.ThrowInvalidProject(onError.Location, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name); 658ProjectErrorUtilities.ThrowInvalidProject(childElement.Location, "PropertyOutsidePropertyGroupInTarget", childElement.Name, childElement.ParentNode.Name); 678ProjectErrorUtilities.VerifyThrowInvalidProject( 698ProjectErrorUtilities.ThrowInvalidProject(childElement.Location, "UnrecognizedChildElement", childElement.Name, task.Name); 721ProjectErrorUtilities.VerifyThrowInvalidProject( 730ProjectErrorUtilities.VerifyThrowInvalidProject(String.IsNullOrWhiteSpace(propertyNameAttribute?.Value) || !ReservedPropertyNames.IsReservedProperty(propertyNameAttribute.Value), element.Location, "CannotModifyReservedProperty", propertyNameAttribute?.Value); 813ProjectErrorUtilities.VerifyThrowInvalidProject(nestingDepth <= MaximumChooseNesting, element.Location, "ChooseOverflow", MaximumChooseNesting); 825ProjectErrorUtilities.VerifyThrowInvalidProject(!foundOtherwise, childElement.Location, "WhenNotAllowedAfterOtherwise"); 831ProjectErrorUtilities.VerifyThrowInvalidProject(!foundOtherwise, childElement.Location, "MultipleOtherwise"); 848ProjectErrorUtilities.VerifyThrowInvalidProject(foundWhen, element.Location, "ChooseMustContainWhen"); 930ProjectErrorUtilities.VerifyThrowInvalidProject(!_seenProjectExtensions, element.Location, "DuplicateProjectExtensions"); 944ProjectErrorUtilities.ThrowInvalidProject(element.Location, "InvalidSdkElementName", element.Name);
Graph\GraphBuilder.cs (1)
368ProjectErrorUtilities.ThrowInvalidProject(
Graph\ProjectGraph.cs (1)
707ProjectErrorUtilities.VerifyThrowInvalidProject(
Instance\ProjectInstance.cs (1)
3303ProjectErrorUtilities.ThrowInvalidProject(toolsVersionLocation, "UnrecognizedToolsVersion", toolsVersionToUse, toolsVersionList);
Instance\ProjectPropertyInstance.cs (2)
335ProjectErrorUtilities.VerifyThrowInvalidProject(!XMakeElements.ReservedItemNames.Contains(name), location, "CannotModifyReservedProperty", name); 336ProjectErrorUtilities.VerifyThrowInvalidProject(mayBeReserved || !ReservedPropertyNames.IsReservedProperty(name), location, "CannotModifyReservedProperty", name);
Instance\TaskFactories\AssemblyTaskFactory.cs (12)
269ProjectErrorUtilities.VerifyThrowInvalidProject(_loadedType != null, elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, String.Empty); 275ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, Environment.NewLine + e.InnerException.ToString()); 293ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, e.Message); 298ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, e.Message); 302ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, e.Message); 483ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, _loadedType.Assembly.AssemblyLocation, Environment.NewLine + e.InnerException.ToString()); 501ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, _loadedType.Assembly.AssemblyLocation, e.Message); 506ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, _loadedType.Assembly.AssemblyLocation, e.Message); 512ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, _loadedType.Assembly.AssemblyLocation, e.Message); 517ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, _loadedType.Assembly.AssemblyLocation, e.Message); 537ProjectErrorUtilities.ThrowInvalidProject( 554ProjectErrorUtilities.ThrowInvalidProject(
Instance\TaskRegistry.cs (12)
1158ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, _taskFactoryWrapperInstance.Name, message); 1258ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CouldNotFindFactory", TaskFactoryAttributeName, taskFactoryLoadInfo.AssemblyLocation); 1267ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskFactoryLoadFailure", TaskFactoryAttributeName, taskFactoryLoadInfo.AssemblyLocation, Environment.NewLine + e.InnerException.ToString()); 1285ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskFactoryLoadFailure", TaskFactoryAttributeName, taskFactoryLoadInfo.AssemblyLocation, e.Message); 1289ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskFactoryLoadFailure", TaskFactoryAttributeName, taskFactoryLoadInfo.AssemblyLocation, e.Message); 1389ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskFactoryLoadFailure", TaskFactoryAttributeName, taskFactoryLoadInfo.AssemblyLocation, message); 1514ProjectErrorUtilities.ThrowInvalidProject( 1578ProjectErrorUtilities.VerifyThrowInvalidProject( 1603ProjectErrorUtilities.VerifyThrowInvalidProject( 1617ProjectErrorUtilities.ThrowInvalidProject( 1630ProjectErrorUtilities.ThrowInvalidProject( 1643ProjectErrorUtilities.ThrowInvalidProject(
Instance\TaskRegistry.UsingTaskInfo.cs (2)
425ProjectErrorUtilities.ThrowInvalidProject( 468ProjectErrorUtilities.VerifyThrowInvalidProject(
Utilities\EngineFileUtilities.cs (6)
484ProjectErrorUtilities.ThrowInvalidProject( 499ProjectErrorUtilities.ThrowInvalidProject( 511ProjectErrorUtilities.ThrowInvalidProject( 524ProjectErrorUtilities.ThrowInvalidProject( 534ProjectErrorUtilities.ThrowInvalidProject( 544ProjectErrorUtilities.ThrowInvalidProject(
Utilities\XmlUtilities.cs (2)
97ProjectErrorUtilities.ThrowInvalidProject(location, "NameInvalid", name, name[firstInvalidCharLocation]); 115ProjectErrorUtilities.ThrowInvalidProject(element.Location, "NameInvalid", name, name[firstInvalidCharLocation]);
Xml\ProjectXmlUtilities.cs (5)
73ProjectErrorUtilities.ThrowInvalidProject(child.Location, "InvalidChildElementDueToDuplication", child.Name, child.ParentNode.Name); 129ProjectErrorUtilities.VerifyThrowInvalidProject( 174ProjectErrorUtilities.VerifyThrowInvalidProject(element.GetAttribute(attributeName).Length > 0, element.Location, "MissingRequiredAttribute", attributeName, element.Name); 210ProjectErrorUtilities.ThrowInvalidProject(location, "UnrecognizedChildElement", name, parentName); 219ProjectErrorUtilities.ThrowInvalidProject(attribute.Location, "UnrecognizedAttribute", attribute.Name, attribute.OwnerElement.Name);