694 references to ErrorUtilities
Microsoft.Build.Engine (694)
Caching\CacheEntryCustomSerializer.cs (1)
60ErrorUtilities.VerifyThrow(false, "Should not get to the default of CacheEntryCustomSerializer CreateFromStream");
Choose\Choose.cs (3)
13using error = Microsoft.Build.BuildEngine.Shared.ErrorUtilities; 78error.VerifyThrow(chooseElement != null, "Need valid <Choose> element."); 241ErrorUtilities.VerifyThrow(pass == ProcessingPass.Pass2, "ProcessingPass must be Pass1 or Pass2.");
Choose\GroupEnumeratorHelper.cs (2)
10using error = Microsoft.Build.BuildEngine.Shared.ErrorUtilities; 62error.VerifyThrow(groupingCollection != null, "GroupingCollection is null");
Choose\GroupingCollection.cs (16)
13using error = Microsoft.Build.BuildEngine.Shared.ErrorUtilities; 66ErrorUtilities.VerifyThrow(this.propertyGroupCount >= 0, "The property group count should never be negative"); 138error.VerifyThrow(this.combinedGroupList != null, "Arraylist not initialized!"); 154ErrorUtilities.VerifyThrow(this.itemGroupCount >= 0, "The item group count should never be negative"); 208error.VerifyThrow(this.combinedGroupList != null, "Arraylist not initialized!"); 289error.VerifyThrow(this.combinedGroupList != null, "Arraylist not initialized!"); 307error.VerifyThrow(this.combinedGroupList != null, "Arraylist not initialized!"); 361error.VerifyThrow(this.combinedGroupList != null, "Arraylist not initialized!"); 366error.VerifyThrow(this.propertyGroupCount >= 0, "Too many calls to RemovePropertyGroup()."); 416error.VerifyThrow(this.combinedGroupList != null, "Arraylist not initialized!"); 422error.VerifyThrow(this.itemGroupCount >= 0, "Too many calls to RemoveItemGroup()."); 440error.VerifyThrow(this.combinedGroupList != null, "Arraylist not initialized!"); 473error.VerifyThrow(this.combinedGroupList != null, "Arraylist not initialized!"); 505error.VerifyThrow(this.combinedGroupList != null, "Arraylist not initialized!"); 509error.VerifyThrow(this.chooseCount >= 0, "Too many calls to RemoveChoose()."); 523error.VerifyThrow(this.combinedGroupList != null, "Arraylist not initialized!");
Choose\When.cs (3)
14using error = Microsoft.Build.BuildEngine.Shared.ErrorUtilities; 65error.VerifyThrow(whenElement != null, "Need valid (non-null) <When> element."); 68error.VerifyThrow(whenElement.Name == XMakeElements.when || whenElement.Name == XMakeElements.otherwise,
Collections\CopyOnWriteHashtable.cs (4)
48ErrorUtilities.VerifyThrowArgumentNull(stringComparer, nameof(stringComparer)); 71ErrorUtilities.VerifyThrowArgumentNull(dictionary, nameof(dictionary)); 72ErrorUtilities.VerifyThrowArgumentNull(stringComparer, nameof(stringComparer)); 151ErrorUtilities.VerifyThrow(stringComparer != null, "Should have a valid string comparer.");
Conditionals\NumericExpressionNode.cs (1)
32ErrorUtilities.VerifyThrow(false, "Can't evaluate a numeric expression as boolean.");
Conditionals\OperatorExpressionNode.cs (1)
28ErrorUtilities.VerifyThrow(false, "Cannot numeric evaluate an operator");
Conditionals\Parser.cs (1)
97ErrorUtilities.VerifyThrow(0 != (optionSettings & ParserOptions.AllowProperties),
Conditionals\Scanner.cs (1)
79ErrorUtilities.VerifyThrow(0 != (options & ParserOptions.AllowProperties),
Engine\BatchingEngine.cs (5)
109ErrorUtilities.VerifyThrow(parentNode != null, "Need the XML node that represents the batchable object."); 110ErrorUtilities.VerifyThrow(batchableObjectParameters != null, "Need the parameters of the batchable object to determine if it can be batched."); 111ErrorUtilities.VerifyThrow(lookup != null, "Need to specify the lookup."); 300ErrorUtilities.VerifyThrow(itemListsToBeBatched.Count > 0, "Need item types consumed by the batchable object."); 301ErrorUtilities.VerifyThrow(consumedMetadataReferences.Count > 0, "Need item metadata consumed by the batchable object.");
Engine\BuildRequest.cs (1)
601ErrorUtilities.VerifyThrowArgumentNull(target, "target should not be null");
Engine\BuildResult.cs (2)
57ErrorUtilities.VerifyThrowArgumentNull(buildResultToCopy, "Cannot have a null build result passed in"); 270ErrorUtilities.VerifyThrow(resultByTarget != null, "resultsByTarget cannot be null");
Engine\BuildTask.cs (20)
15using error = Microsoft.Build.BuildEngine.Shared.ErrorUtilities; 72error.VerifyThrow(taskElement != null, "Need a valid XML node."); 75error.VerifyThrow(parentTarget != null, "Need a valid target parent."); 158error.VerifyThrowInvalidOperation(this.taskElement != null, 162error.VerifyThrowInvalidOperation(!this.importedFromAnotherProject, 202error.VerifyThrowInvalidOperation(this.taskElement != null, 206error.VerifyThrowInvalidOperation(!this.importedFromAnotherProject, 235ErrorUtilities.VerifyThrow(this.ParentTarget != null, "ParentTarget should not be null"); 255ErrorUtilities.VerifyThrowInvalidOperation(taskEngine.FindTask(), 348error.VerifyThrowArgument(!XMakeAttributes.IsSpecialTaskAttribute(attributeName), 351error.VerifyThrowInvalidOperation(this.taskElement != null, 394error.VerifyThrowArgument(!XMakeAttributes.IsSpecialTaskAttribute(parameterName), 398error.VerifyThrowInvalidOperation(!this.importedFromAnotherProject, 401error.VerifyThrowInvalidOperation(this.taskElement != null, 431error.VerifyThrowInvalidOperation(!this.importedFromAnotherProject, 434error.VerifyThrowInvalidOperation(this.taskElement != null, 460error.VerifyThrowInvalidOperation(!this.importedFromAnotherProject, 463error.VerifyThrowInvalidOperation(this.taskElement != null, 483error.VerifyThrowInvalidOperation(this.taskElement != null, 486error.VerifyThrowInvalidOperation(this.parentTarget != null,
Engine\CacheScope.cs (6)
149ErrorUtilities.VerifyThrowInvalidOperation(false, "CannotModifyCacheEntryValues"); 232ErrorUtilities.VerifyThrow(buildResult != null, "Expect a non-null build result"); 249ErrorUtilities.VerifyThrow(!buildResult.EvaluationResult || (buildResult.InitialTargets != null 283ErrorUtilities.VerifyThrow(buildResult.OutputsByTarget.Contains(entry.Key), 352ErrorUtilities.VerifyThrow(projectIdCacheEntry != null, "We should always have the projectId cache entry"); 354ErrorUtilities.VerifyThrow(defaultTargetsCacheEntry != null && initialTargetsCacheEntry != null,
Engine\Engine.cs (44)
21using error = Microsoft.Build.BuildEngine.Shared.ErrorUtilities; 325ErrorUtilities.VerifyThrow(startupDirectory != null, "Need startup directory"); 488error.VerifyThrowArgumentNull(value, "BinPath"); 886error.VerifyThrow(toolsetVersion != null, "Expect non-null toolset version"); 887error.VerifyThrow(toolsetStateMap.ContainsKey(toolsetVersion), "Expected to see the toolset in the table"); 901error.VerifyThrowArgumentNull(toolset, nameof(toolset)); 1010ErrorUtilities.VerifyThrow(this.defaultToolsVersion != null, 1019ErrorUtilities.VerifyThrowInvalidOperation(this.ProjectsLoadedByHost.Count == 0, 1022ErrorUtilities.VerifyThrowArgumentNull(value, "value"); 1038error.VerifyThrowArgumentNull(logger, nameof(logger)); 1107error.VerifyThrowArgumentNull(forwardingLogger, nameof(forwardingLogger)); 1347ErrorUtilities.VerifyThrowArgumentNull(projectFullFileName, nameof(projectFullFileName)); 1368error.VerifyThrowArgumentNull(project, nameof(project)); 1370ErrorUtilities.VerifyThrow(project.IsLoadedByHost, "How did the caller get a reference to this Project object if it's not marked as loaded?"); 1372ErrorUtilities.VerifyThrowInvalidOperation(project.ParentEngine == this, "IncorrectObjectAssociation", "Project", "Engine"); 1415ErrorUtilities.VerifyThrow(project.IsLoadedByHost, "This method can only be called for projects loaded by the host."); 1428error.VerifyThrow((Project)projectsLoadedByHost[oldFullFileName] == project, "The engine's loaded project table was not up-to-date."); 1499ErrorUtilities.VerifyThrow(this.projectsLoadedByHost.Count == 0, "All projects did not get unloaded?"); 1607ErrorUtilities.VerifyThrow(this.numberOfProjectsInProgress == 0 || terminatingBuildRequest != null, 1689ErrorUtilities.VerifyThrow(engineCommand != null, "Should have gotten a command"); 1704ErrorUtilities.VerifyThrow(currentRequest != null, "Should have gotten an evalution request"); 1734ErrorUtilities.VerifyThrow(taskExecutionContext != null, "Should have gotten a task update"); 1784ErrorUtilities.VerifyThrow(false, "The event type should be 0, 1, 2 or 3"); 1872error.VerifyThrowArgument(project != null, "MissingProject", "Project"); 1875error.VerifyThrowInvalidOperation(project.ParentEngine == this, "IncorrectObjectAssociation", "Project", "Engine"); 2033ErrorUtilities.VerifyThrow(this.numberOfProjectsInProgress != 0, "Number of Projects in progress should not be 0 before the count is decremented"); 2070ErrorUtilities.VerifyThrow(this.cacheOfBuildingProjects.GetProject(loadedProject.FullFileName, loadedProject.GlobalProperties, loadedProject.ToolsVersion) == null, 2210error.VerifyThrowArgumentNull(projectFile, "projectFileName"); 2211error.VerifyThrowArgument(projectFile.Length > 0, "EmptyProjectFileName"); 2272error.VerifyThrowArgumentArraysSameLength(projectFiles, targetNamesPerProject, "projectFiles", "targetNamesPerProject"); 2273error.VerifyThrowArgument(projectFiles.Length > 0, "projectFilesEmpty"); 2274error.VerifyThrowArgumentArraysSameLength(projectFiles, globalPropertiesPerProject, "projectFiles", "globalPropertiesPerProject"); 2275error.VerifyThrowArgumentArraysSameLength(projectFiles, targetOutputsPerProject, "projectFiles", "targetOutputsPerProject"); 2276error.VerifyThrowArgumentArraysSameLength(projectFiles, toolsVersions, "projectFiles", "toolsVersions"); 2281error.VerifyThrowArgumentNull(projectFiles[i], "projectFiles[" + i + "]"); 2282error.VerifyThrowArgument(projectFiles[i].Length > 0, "projectFilesEmptyElement", i); 2480error.VerifyThrowArgumentNull(projectFile, "projectFileName"); 2481error.VerifyThrowArgument(projectFile.Length > 0, "EmptyProjectFileName"); 2483error.VerifyThrow(buildRequest.GlobalProperties != null, "Global Properties should not be null"); 2489ErrorUtilities.VerifyThrowArgument(projectFileInfo.Exists, "ProjectFileNotFound", projectFile); 2603ErrorUtilities.VerifyThrow(cacheOfBuildingProjects.GetRemoteProject(projectFileInfo.FullName, buildRequest.GlobalProperties, toolsVersionToUse) == EngineCallback.invalidNode, 2878error.VerifyThrowArgument(childProjectFile.Length > 0, "EmptyProjectFileName"); 2881ErrorUtilities.VerifyThrowArgument(File.Exists(childProjectFile), "ProjectFileNotFound", childProjectFile); 3009ErrorUtilities.VerifyThrow(executionState != null,
Engine\EngineCallback.cs (5)
90ErrorUtilities.VerifyThrow(buildRequest.ParentBuildEventContext != null, "Should not have a null parentBuildEventContext"); 91ErrorUtilities.VerifyThrow(buildRequest.IsGeneratedRequest, "Should not be sending a non generated request from the child node to the parent node"); 134ErrorUtilities.VerifyThrow(parentProject != null, "Parent project must be non-null"); 209ErrorUtilities.VerifyThrow(routingContext.CacheScope != null, "Cache scope should be created for this context"); 550ErrorUtilities.VerifyThrow(executionContexts.ContainsKey(handleId), "The table must contain this entry");
Engine\EngineCommand.cs (2)
21ErrorUtilities.VerifyThrow(false, "Should overwrite the execute method"); 40ErrorUtilities.VerifyThrow(parentEngine.Router.ParentNode != null,
Engine\EngineLoggingServices.cs (22)
67ErrorUtilities.VerifyThrow(false, "This method should be defined in a subclass"); 80ErrorUtilities.VerifyThrowArgumentNull(e, nameof(e)); 111ErrorUtilities.VerifyThrowArgumentNull(eventArray, nameof(eventArray)); 144ErrorUtilities.VerifyThrowArgumentNull(e, nameof(e)); 168ErrorUtilities.VerifyThrowArgumentNull(eventArray, nameof(eventArray)); 245ErrorUtilities.VerifyThrowArgumentNull(e, nameof(e)); 265ErrorUtilities.VerifyThrowArgumentNull(e, nameof(e)); 284ErrorUtilities.VerifyThrowArgumentNull(e, nameof(e)); 302ErrorUtilities.VerifyThrowArgumentNull(e, nameof(e)); 336ErrorUtilities.VerifyThrow(messageResourceName != null, "Need resource string for comment message."); 349ErrorUtilities.VerifyThrow(message != null, 396ErrorUtilities.VerifyThrow(messageResourceName != null, "Need resource string for error message."); 416ErrorUtilities.VerifyThrow(file != null, "Must specify the associated file."); 417ErrorUtilities.VerifyThrow(message != null, "Need error message."); 451ErrorUtilities.VerifyThrow(invalidProjectFileException != null, "Need exception context."); 499ErrorUtilities.VerifyThrow(taskName != null, "Must specify the name of the task that failed."); 515ErrorUtilities.VerifyThrow(messageResourceName != null, "Need resource string for error message."); 551ErrorUtilities.VerifyThrow(taskName != null, "Must specify the name of the task that failed."); 552ErrorUtilities.VerifyThrow(file != null, "Must specify the associated file."); 591ErrorUtilities.VerifyThrow(messageResourceName != null, "Need resource string for warning message."); 611ErrorUtilities.VerifyThrow(file != null, "Must specify the associated file."); 612ErrorUtilities.VerifyThrow(message != null, "Need warning message.");
Engine\EngineLoggingServicesInProc.cs (3)
72ErrorUtilities.VerifyThrow(eventSources.ContainsKey(loggerId), "Logger Id should be registered"); 73ErrorUtilities.VerifyThrow(loggerId != LOCAL_FORWARDING_EVENTSOURCE, "Should not use FWD loggers"); 126ErrorUtilities.VerifyThrow(!eventSources.ContainsKey(loggerId), "Should not see duplicate logger ids");
Engine\EngineProxy.cs (19)
126ErrorUtilities.VerifyThrow(parentModule != null, "No parent module."); 127ErrorUtilities.VerifyThrow(loggingServices != null, "No logging services."); 128ErrorUtilities.VerifyThrow(projectFileOfTaskNode != null, "Need project file path string"); 146ErrorUtilities.VerifyThrowArgumentNull(e, nameof(e)); 147ErrorUtilities.VerifyThrowInvalidOperation(activeProxy, "AttemptingToLogFromInactiveTask"); 215ErrorUtilities.VerifyThrowArgumentNull(e, nameof(e)); 216ErrorUtilities.VerifyThrowInvalidOperation(activeProxy, "AttemptingToLogFromInactiveTask"); 292ErrorUtilities.VerifyThrowArgumentNull(e, nameof(e)); 293ErrorUtilities.VerifyThrowInvalidOperation(activeProxy, "AttemptingToLogFromInactiveTask"); 309ErrorUtilities.VerifyThrowArgumentNull(e, nameof(e)); 310ErrorUtilities.VerifyThrowInvalidOperation(activeProxy, "AttemptingToLogFromInactiveTask"); 330ErrorUtilities.VerifyThrowInvalidOperation(activeProxy, "AttemptingToLogFromInactiveTask"); 354ErrorUtilities.VerifyThrowInvalidOperation(activeProxy, "AttemptingToLogFromInactiveTask"); 370ErrorUtilities.VerifyThrowInvalidOperation(activeProxy, "AttemptingToLogFromInactiveTask"); 384ErrorUtilities.VerifyThrowInvalidOperation(activeProxy, "AttemptingToLogFromInactiveTask"); 442ErrorUtilities.VerifyThrowInvalidOperation(activeProxy, "AttemptingToLogFromInactiveTask"); 530ErrorUtilities.VerifyThrowInvalidOperation(activeProxy, "AttemptingToLogFromInactiveTask"); 532ErrorUtilities.VerifyThrowArgumentNull(projectFileNames, nameof(projectFileNames)); 533ErrorUtilities.VerifyThrowArgumentNull(globalProperties, "globalPropertiesPerProject");
Engine\EventRedirector.cs (2)
42ErrorUtilities.VerifyThrowInvalidOperation(!(buildEvent is BuildStartedEventArgs), "DontForwardBuildStarted"); 44ErrorUtilities.VerifyThrowInvalidOperation(!(buildEvent is BuildFinishedEventArgs), "DontForwardBuildFinished");
Engine\EventSource.cs (1)
575ErrorUtilities.VerifyThrow(false, "Unknown event args type.");
Engine\Expander.cs (10)
112ErrorUtilities.VerifyThrow(options != ExpanderOptions.Invalid, "Must specify options"); 147ErrorUtilities.VerifyThrow((options & ExpanderOptions.ExpandMetadata) != 0, "Must be expanding metadata"); 148ErrorUtilities.VerifyThrow(implicitMetadataItemType == null || String.Equals(implicitMetadataItemType, itemType, StringComparison.OrdinalIgnoreCase), "Unexpected metadata type"); 309ErrorUtilities.VerifyThrow(expression != null, "Must pass in non-null expression."); 1359ErrorUtilities.VerifyThrow(functionType.Item1 != null || functionType.Item2 != null, "Function type information needs either string or type represented."); 1433ErrorUtilities.VerifyThrow(assemblyNameEnd > 0, "Invalid typename: {0}", typeName); 1516ErrorUtilities.VerifyThrow(argumentsEndIndex != -1, "Unmatched braces when constructing function.", "$(" + expressionFunction + ")"); 1669ErrorUtilities.VerifyThrowArgumentNull(argumentBuilder, nameof(argumentBuilder)); 1932ErrorUtilities.VerifyThrow(itemMetadataMatch.Success, "Need a valid item metadata."); 2088ErrorUtilities.VerifyThrow(lookup != null, "Need items");
Engine\Import.cs (2)
139ErrorUtilities.VerifyThrow(importElement != null, 145ErrorUtilities.VerifyThrow(parentProject != null,
Engine\ImportCollection.cs (13)
38ErrorUtilities.VerifyThrow(parentProject != null, 57ErrorUtilities.VerifyThrow(this.imports != null, "ImportCollection's Hashtable not initialized!"); 73ErrorUtilities.VerifyThrow(this.imports != null, "ImportCollection's Dictionary not initialized!"); 85ErrorUtilities.VerifyThrow(this.imports != null, "ImportCollection's Dictionary not initialized!"); 98ErrorUtilities.VerifyThrow(this.imports != null, "ImportCollection's Dictionary not initialized!"); 111ErrorUtilities.VerifyThrow(this.imports != null, "ImportCollection's Dictionary not initialized!"); 134ErrorUtilities.VerifyThrow(this.imports != null, "ImportCollection's Hashtable not initialized!"); 148ErrorUtilities.VerifyThrow(this.imports != null, "ImportCollection's Hashtable not initialized!"); 165ErrorUtilities.VerifyThrow(this.imports != null, "ImportCollection's Hashtable not initialized!"); 176ErrorUtilities.VerifyThrowArgumentLength(projectFile, nameof(projectFile)); 203ErrorUtilities.VerifyThrowArgumentNull(importToRemove, nameof(importToRemove)); 206ErrorUtilities.VerifyThrowInvalidOperation(!importToRemove.IsImported, 210ErrorUtilities.VerifyThrowInvalidOperation(importToRemove.ParentProject == this.parentProject,
Engine\IntrinsicFunctions.cs (1)
377ErrorUtilities.ThrowArgument(keyName);
Engine\ItemBucket.cs (1)
71ErrorUtilities.VerifyThrow(lookup != null, "Need lookup.");
Engine\Node.cs (5)
113ErrorUtilities.VerifyThrow(currentRequest.ProjectToBuild == null, "Should not have a project object"); 130ErrorUtilities.VerifyThrow(taskExecutionContext.BuildContext.BuildRequest.IsGeneratedRequest, 287ErrorUtilities.VerifyThrow(localEngine != null, "Local engine should be initialized"); 446ErrorUtilities.LaunchMsBuildDebuggerOnFatalError(); 476ErrorUtilities.LaunchMsBuildDebuggerOnFatalError();
Engine\NodeLoggingEvent.cs (1)
179ErrorUtilities.VerifyThrow(false, "Should not get to the default of getBuildEventArgFromId ID:" + id);
Engine\NodeManager.cs (4)
55ErrorUtilities.VerifyThrowArgumentNull(nodeProviderToRegister, nameof(nodeProviderToRegister)); 160ErrorUtilities.VerifyThrow(nodeStatus.RequestId != NodeStatus.UnrequestedStatus, 236ErrorUtilities.VerifyThrow(nodeIndex <= nodeList.Count, "Should not pass a node index higher then the number of nodes in nodeManager"); 254ErrorUtilities.VerifyThrow(nodeIndex != 0, "Should not use NodeManager to post to local TEM");
Engine\NodeRequestMapping.cs (1)
23ErrorUtilities.VerifyThrow(resultsCache != null, "Expect a non-null build result");
Engine\Project.cs (52)
21using error = Microsoft.Build.BuildEngine.Shared.ErrorUtilities; 559ErrorUtilities.VerifyThrowArgumentNull(value, "value"); 617ErrorUtilities.VerifyThrowArgumentNull(value, "value"); 659ErrorUtilities.VerifyThrowInvalidOperation(parentEngine != null, "ProjectInvalidUnloaded"); 758ErrorUtilities.VerifyThrow(false, "How did this.buildEnabled get a bogus value?"); 797error.VerifyThrowArgumentLength(value, "value"); 800error.VerifyThrowInvalidOperation(this.ParentEngine.ToolsetStateMap.ContainsKey(value), "UnrecognizedToolsVersion", value); 931ErrorUtilities.VerifyThrowArgumentNull(value, "value"); 972error.VerifyThrowArgumentNull(value, "value"); 1145error.VerifyThrow(this.rawPropertyGroups != null, 1159error.VerifyThrow(this.targets != null, 1173ErrorUtilities.VerifyThrow(this.usingTasks != null, "Project object not initialized. usingTasks is null."); 1186ErrorUtilities.VerifyThrow(this.imports != null, "Project object not initialized. imports is null."); 1201error.VerifyThrow(this.rawItemGroups != null, 1761ErrorUtilities.VerifyThrowArgumentNull(projectFileName, nameof(projectFileName)); 1762ErrorUtilities.VerifyThrowArgument(projectFileName.Length > 0, "EmptyProjectFileName"); 1763ErrorUtilities.VerifyThrowArgument(File.Exists(projectFileName), "ProjectFileNotFound", projectFileName); 1897ErrorUtilities.VerifyThrowArgumentNull(textReader, nameof(textReader)); 1949ErrorUtilities.VerifyThrowArgumentNull(projectXml, nameof(projectXml)); 1991ErrorUtilities.VerifyThrowArgumentNull(projectXml, nameof(projectXml)); 2014ErrorUtilities.VerifyThrow(projectXml != null, "Need project XML."); 2406error.VerifyThrowArgumentLength(propertyName, nameof(propertyName)); 2409error.VerifyThrowArgument(propertyValue != null, 2584error.VerifyThrowArgumentNull(propertyGroupToRemove, nameof(propertyGroupToRemove)); 2587error.VerifyThrowInvalidOperation(!propertyGroupToRemove.IsImported, 2591error.VerifyThrowInvalidOperation( 2599ErrorUtilities.VerifyThrow(parentElement != null, "Why doesn't this PG have a parent XML element?"); 2602ErrorUtilities.VerifyThrow(propertyGroupToRemove.ParentCollection != null, "Why doesn't this PG have a parent collection?"); 2619error.VerifyThrowArgumentNull(propertyGroupToRemove, nameof(propertyGroupToRemove)); 2622error.VerifyThrowInvalidOperation( 2629ErrorUtilities.VerifyThrow(propertyGroupToRemove.ParentCollection != null, "Why doesn't this PG have a parent collection?"); 2733ErrorUtilities.VerifyThrowArgumentLength(itemName, nameof(itemName)); 2734ErrorUtilities.VerifyThrowArgumentLength(itemInclude, nameof(itemInclude)); 2872error.VerifyThrowArgumentNull(itemGroupToRemove, nameof(itemGroupToRemove)); 2875error.VerifyThrowInvalidOperation(!itemGroupToRemove.IsImported, 2879error.VerifyThrowInvalidOperation( 2887ErrorUtilities.VerifyThrow(parentElement != null, "Why doesn't this IG have a parent XML element?"); 2891ErrorUtilities.VerifyThrow(itemGroupToRemove.ParentCollection != null, "Why doesn't this IG have a parent collection?"); 2921error.VerifyThrowArgumentNull(itemToRemove, nameof(itemToRemove)); 2924error.VerifyThrowInvalidOperation(!itemToRemove.IsImported, "CannotModifyImportedProjects"); 2935error.VerifyThrowInvalidOperation(parentItemGroup != null, "ObjectIsNotInProject"); 2946error.VerifyThrow(itemToRemove.ParentPersistedItem != null, "No parent BuildItem for item to be removed."); 2949error.VerifyThrow(itemToRemove.ParentPersistedItemGroup != null, 3240ErrorUtilities.VerifyThrow(taskExecutionContext != null, "Task context should be non-null"); 3251ErrorUtilities.VerifyThrow( 3255ErrorUtilities.VerifyThrow( 3672error.VerifyThrow(mainProjectElement != null, 3745error.VerifyThrow(projectElement != null, 3832error.VerifyThrow(projectElement != null, 4312ErrorUtilities.VerifyThrow(false, "Unexpected return type from this.rawGroups.PropertyGroupsAndChooses"); 4330error.VerifyThrow(ignoreCondition || honorCondition, "Both ignoreCondition and honorCondition can't be false."); 4344ErrorUtilities.VerifyThrow(false, "Unexpected return type from this.rawGroups.ItemGroupsAndChooses");
Engine\ProjectBuildState.cs (2)
159ErrorUtilities.VerifyThrow(requiredTargets.Count > 0, "No target to remove"); 208ErrorUtilities.VerifyThrow(topTarget == name, "Requesting target should be on the top of stack");
Engine\ProjectManager.cs (6)
43ErrorUtilities.VerifyThrow(project.FullFileName.Length > 0, "Can't store nameless projects"); 71ErrorUtilities.VerifyThrow(project != null, "Shouldn't ask to remove null projects"); 77ErrorUtilities.VerifyThrow(projectsWithThisFullPath != null, "Project missing from the list"); 89ErrorUtilities.VerifyThrow(project_index != -1, "Project missing from the list"); 238ErrorUtilities.VerifyThrow(nodeIndex != EngineCallback.parentNode, "Should not try to insert nodeIndex of parentNode"); 340ErrorUtilities.VerifyThrow(existingEntry.nodeIndex == nodeIndex, "nodeIndex should match existing ProjectEntry");
Engine\RegistryKeyWrapper.cs (3)
61ErrorUtilities.VerifyThrowArgumentNull(registryKeyPath, nameof(registryKeyPath)); 62ErrorUtilities.VerifyThrowArgumentNull(registryHive, nameof(registryHive)); 163ErrorUtilities.VerifyThrowArgumentLength(name, nameof(name));
Engine\RequestRoutingContext.cs (1)
99ErrorUtilities.VerifyThrow(triggeringBuildRequest != null, "This must be a routing context");
Engine\Scheduler.cs (6)
216ErrorUtilities.VerifyThrow(!handleIdToScheduleRecord.ContainsKey(recordKey), 225ErrorUtilities.VerifyThrow(handleIdToScheduleRecord.ContainsKey(parentKey), 255ErrorUtilities.VerifyThrow(handleIdToScheduleRecord.ContainsKey(recordKey), 264ErrorUtilities.VerifyThrow(handleIdToScheduleRecord.ContainsKey(scheduleRecord.ParentKey), 350ErrorUtilities.VerifyThrow(handleIdToScheduleRecord.ContainsKey(recordKey), 369ErrorUtilities.VerifyThrow(handleIdToScheduleRecord.ContainsKey(recordKey),
Engine\Target.cs (15)
17using error = Microsoft.Build.BuildEngine.Shared.ErrorUtilities; 135error.VerifyThrow(targetElement != null, "Need a valid XML node."); 517error.VerifyThrow(this.taskElementList != null, "List of TaskElements not initialized!"); 603error.VerifyThrow( 607error.VerifyThrow(targetOutputItems != null, 677error.VerifyThrow(false, "Build state {0} not handled in Target.Build method", buildState); 752error.VerifyThrowInvalidOperation(this.targetElement != null, "CannotSetCondition"); 755error.VerifyThrowInvalidOperation(!this.importedFromAnotherProject, "CannotModifyImportedProjects"); 775error.VerifyThrow(this.taskElementList != null, "Arraylist not initialized!"); 776error.VerifyThrowArgumentLength(taskName, nameof(taskName)); 779error.VerifyThrowInvalidOperation(!this.IsImported, "CannotModifyImportedProjects"); 806error.VerifyThrowInvalidOperation(!this.IsImported, "CannotModifyImportedProjects"); 808error.VerifyThrow(this.taskElementList != null, "Arraylist not initialized!"); 809error.VerifyThrowArgumentNull(taskElement, nameof(taskElement)); 812error.VerifyThrowInvalidOperation(taskElement.ParentTarget == this,
Engine\TargetCollection.cs (13)
14using error = Microsoft.Build.BuildEngine.Shared.ErrorUtilities; 46error.VerifyThrow(parentProject != null, "Must pass in valid parent project object."); 77error.VerifyThrow(this.targetTable != null, "Hashtable not initialized!"); 119error.VerifyThrow(this.targetTable != null, "Hashtable not initialized!"); 140error.VerifyThrow(this.targetTable != null, "Hashtable not initialized!"); 155error.VerifyThrow(this.targetTable != null, "Hashtable not initialized!"); 169error.VerifyThrow(this.targetTable != null, "Hashtable not initialized!"); 186error.VerifyThrow(this.parentProject != null, "Need parent project."); 218error.VerifyThrowArgumentNull(targetToRemove, nameof(targetToRemove)); 221error.VerifyThrowInvalidOperation(!targetToRemove.IsImported, 225error.VerifyThrowInvalidOperation(targetToRemove.ParentProject == this.parentProject, 259error.VerifyThrow(this.targetTable != null, "Hashtable not initialized!"); 272error.VerifyThrow(this.targetTable != null, "Hashtable not initialized!");
Engine\TargetDependencyAnalyzer.cs (11)
49ErrorUtilities.VerifyThrow(projectDirectory != null, "Need a project directory."); 50ErrorUtilities.VerifyThrow(targetToAnalyze != null, "Need a target to analyze."); 51ErrorUtilities.VerifyThrow(targetToAnalyze.TargetElement != null, "Need a target element."); 220ErrorUtilities.VerifyThrow(itemVectorsReferencedInBothTargetInputsAndOutputs.Count > 0, "The target must have inputs."); 590ErrorUtilities.VerifyThrow(inputItemVectors.Count == 1, 609ErrorUtilities.VerifyThrow(inputItems.Count == outputItems.Count, 664ErrorUtilities.VerifyThrow(numberOfInputItemVectorsWithAllChangedItems <= itemVectorsReferencedInBothTargetInputsAndOutputs.Count, 670ErrorUtilities.VerifyThrow(result == DependencyAnalysisResult.IncrementalBuild, 807ErrorUtilities.VerifyThrow((itemVectorTransforms == null) || (itemVectorCollection.Equals(itemVectorTransforms)) || (itemVectorCollectionPartition.Count == 1), 916ErrorUtilities.VerifyThrow((inputs.Count > 0) && (outputs.Count > 0), "Need to specify inputs and outputs."); 1142ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(path1) && !string.IsNullOrEmpty(path2),
Engine\TargetExecutionWrapper.cs (17)
136ErrorUtilities.VerifyThrow(inProgressBuildState != InProgressBuildState.NotInProgress, "Not in progress"); 219ErrorUtilities.VerifyThrow(inProgressBuildState == InProgressBuildState.BuildingDependencies, "Wrong state"); 221ErrorUtilities.VerifyThrow(currentDependentTarget < dependsOnTargetNames.Count, "No dependent targets left"); 226ErrorUtilities.VerifyThrow( 290ErrorUtilities.VerifyThrow(inProgressBuildState == InProgressBuildState.BuildingErrorClause, "Wrong state"); 292ErrorUtilities.VerifyThrow(currentErrorTarget < onErrorTargets.Count, "No error targets left"); 297ErrorUtilities.VerifyThrow( 512ErrorUtilities.VerifyThrow(targetElement != null, 537ErrorUtilities.VerifyThrow(inProgressBuildState == InProgressBuildState.RunningTasks, "Wrong state"); 539ErrorUtilities.VerifyThrow(currentBucket < buckets.Count, "No buckets left"); 692ErrorUtilities.VerifyThrow(taskElementList.Count > (currentTask - skippedNodeCount), 845ErrorUtilities.VerifyThrow(howToBuild == DependencyAnalysisResult.FullBuild || 919ErrorUtilities.VerifyThrow( 923ErrorUtilities.VerifyThrow(targetOutputItems != null, 1022ErrorUtilities.VerifyThrow( 1029ErrorUtilities.VerifyThrow( 1045ErrorUtilities.VerifyThrow(
Engine\TaskEngine.cs (21)
71ErrorUtilities.VerifyThrow(taskNodeXmlElement != null, "Need to specify the task node."); 72ErrorUtilities.VerifyThrow(projectFileOfTaskNode != null, "Need to specify path of project."); 73ErrorUtilities.VerifyThrow(parentProjectFullFileName != null, "Need to specify name of project."); 74ErrorUtilities.VerifyThrow(loggingServices != null, "Need to specify the node logger."); 265ErrorUtilities.VerifyThrow(lookup != null, "Need to specify items available to task."); 432ErrorUtilities.VerifyThrow(GatherTaskOutputs(howToExecuteTask, null, bucket), 809ErrorUtilities.VerifyThrow(taskOutputSpecification.TaskParameterAttribute != null, 811ErrorUtilities.VerifyThrow(taskOutputSpecification.TaskParameterAttribute.Value.Length > 0, 826ErrorUtilities.VerifyThrow(taskOutputSpecification.ItemNameAttribute != null, 829ErrorUtilities.VerifyThrow(taskOutputSpecification.ItemNameAttribute.Value.Length > 0, 840ErrorUtilities.VerifyThrow(taskOutputSpecification.IsProperty, 843ErrorUtilities.VerifyThrow(taskOutputSpecification.PropertyNameAttribute != null, 846ErrorUtilities.VerifyThrow(taskOutputSpecification.PropertyNameAttribute.Value.Length > 0, 900ErrorUtilities.VerifyThrow(task != null, "Need instantiated task to retrieve outputs from."); 996ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(itemName), "Need item type."); 1017ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(propertyName), "Need property name."); 1054ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(itemName), "Need item type."); 1068ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(propertyName), "Need property name."); 1130ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(itemName), "Need item type."); 1164ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(propertyName), "Need property name."); 1446ErrorUtilities.VerifyThrow(parameterValue != null,
Engine\TaskExecutionContext.cs (1)
127ErrorUtilities.VerifyThrow(buildRequest != null, "There must be a non-null build request");
Engine\TaskExecutionModule.cs (1)
232ErrorUtilities.VerifyThrow(buildRequests[i].IsGeneratedRequest, "Should not be sending non generated requests from TEM to engine");
Engine\TaskExecutionState.cs (2)
48ErrorUtilities.VerifyThrow(taskXmlNode != null, "Must have task node"); 168ErrorUtilities.VerifyThrow(targetInferenceSuccessful, "A task engine should never fail to infer its task's up-to-date outputs.");
Engine\TaskOutput.cs (1)
36ErrorUtilities.VerifyThrow(node != null, "Need the XML for the <Output> tag.");
Engine\TaskWorkerThread.cs (8)
249ErrorUtilities.VerifyThrow(false, "Unexpected NodeLoopExecutionMode"); 298ErrorUtilities.VerifyThrow(false, "Unexpected NodeLoopExecutionMode"); 359ErrorUtilities.VerifyThrow( 383ErrorUtilities.VerifyThrow(taskToExecute != null, "Expected a workitem"); 436ErrorUtilities.VerifyThrow( 450ErrorUtilities.VerifyThrow(originalResultCount < resultCount, "We should have found at least 1 result"); 464ErrorUtilities.VerifyThrow 510ErrorUtilities.VerifyThrow(workerThread != null, "Worker thread should be in the table");
Engine\Toolset.cs (2)
47ErrorUtilities.VerifyThrowArgumentLength(toolsVersion, nameof(toolsVersion)); 48ErrorUtilities.VerifyThrowArgumentLength(toolsPath, nameof(toolsPath));
Engine\ToolsetCollection.cs (3)
46ErrorUtilities.VerifyThrowArgumentNull(parentEngine, nameof(parentEngine)); 72ErrorUtilities.VerifyThrowArgumentLength(toolsVersion, nameof(toolsVersion)); 127ErrorUtilities.VerifyThrowArgumentNull(item, nameof(item));
Engine\ToolsetConfigurationReader.cs (2)
11using error = Microsoft.Build.BuildEngine.Shared.ErrorUtilities; 36error.VerifyThrowArgumentNull(readApplicationConfiguration, nameof(readApplicationConfiguration));
Engine\ToolsetReader.cs (6)
12using error = Microsoft.Build.BuildEngine.Shared.ErrorUtilities; 24error.VerifyThrowArgumentLength(name, nameof(name)); 25error.VerifyThrowArgumentLength(source, nameof(source)); 28error.VerifyThrowArgumentNull(value, nameof(value)); 186ErrorUtilities.VerifyThrow(Constants.defaultToolsVersion == "2.0", "Getting 2.0 FX path so default should be 2.0"); 255error.VerifyThrowArgumentNull(toolsets, nameof(toolsets));
Engine\ToolsetRegistryReader.cs (2)
9using error = Microsoft.Build.BuildEngine.Shared.ErrorUtilities; 52error.VerifyThrowArgumentNull(msbuildRegistryWrapper, nameof(msbuildRegistryWrapper));
Engine\ToolsetState.cs (2)
61ErrorUtilities.VerifyThrowArgumentNull(toolset, nameof(toolset)); 151ErrorUtilities.VerifyThrowArgumentNull(taskRegistry, nameof(taskRegistry));
Engine\UsingTask.cs (1)
125ErrorUtilities.VerifyThrow(usingTaskNode.Name == XMakeElements.usingTask,
Engine\UsingTaskCollection.cs (9)
49ErrorUtilities.VerifyThrow(this.usingTasks != null, "UsingTaskCollection's ArrayList not initialized!"); 65ErrorUtilities.VerifyThrow(this.usingTasks != null, "UsingTaskCollection's ArrayList not initialized!"); 77ErrorUtilities.VerifyThrow(this.usingTasks != null, "UsingTaskCollection's ArrayList not initialized!"); 90ErrorUtilities.VerifyThrow(this.usingTasks != null, "UsingTaskCollection's ArrayList not initialized!"); 103ErrorUtilities.VerifyThrow(this.usingTasks != null, "UsingTaskCollection's ArrayList not initialized!"); 118ErrorUtilities.VerifyThrow(this.usingTasks != null, "UsingTaskCollection's ArrayList not initialized!"); 129ErrorUtilities.VerifyThrow(this.usingTasks != null, "UsingTaskCollection's ArrayList not initialized!"); 143ErrorUtilities.VerifyThrow(this.usingTasks != null, "UsingTaskCollection's ArrayList not initialized!"); 156ErrorUtilities.VerifyThrow(this.usingTasks != null, "UsingTaskCollection's ArrayList not initialized!");
Engine\Utilities.cs (3)
236ErrorUtilities.VerifyThrow((conditionAttribute != null) || (string.IsNullOrEmpty(condition)), 293ErrorUtilities.VerifyThrow(s != null, "Need value to set."); 546ErrorUtilities.VerifyThrow(xmlNode != null, "Need Xml node.");
Engine\XmlSearcher.cs (4)
94ErrorUtilities.VerifyThrow(xmlNodeToFind != null, "No Xml node!"); 124ErrorUtilities.VerifyThrow(elementToFind != null, "How can an xml attribute not have a parent?"); 244ErrorUtilities.VerifyThrow(xmlElementNumberToSearchFor != 0, "No element to search for!"); 245ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(projectFile), "No project file!");
Errors\InternalLoggerException.cs (8)
40ErrorUtilities.VerifyThrowInvalidOperation(false, "InternalLoggerExceptionOnlyThrownByEngine"); 55ErrorUtilities.VerifyThrowInvalidOperation(false, "InternalLoggerExceptionOnlyThrownByEngine"); 71ErrorUtilities.VerifyThrowInvalidOperation(false, "InternalLoggerExceptionOnlyThrownByEngine"); 98ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(message), "Need error message."); 99ErrorUtilities.VerifyThrow(innerException != null || initializationException, "Need the logger exception."); 100ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(errorCode), "Must specify the error message code."); 101ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(helpKeyword), "Must specify the help keyword for the IDE."); 232ErrorUtilities.VerifyThrow(messageResourceName != null, "Need error message.");
Errors\InvalidProjectFileException.cs (3)
143ErrorUtilities.VerifyThrowArgumentLength(message, nameof(message)); 184ErrorUtilities.VerifyThrowArgumentNull(projectFile, nameof(projectFile)); 185ErrorUtilities.VerifyThrowArgumentLength(message, nameof(message));
Errors\InvalidToolsetDefinitionException.cs (2)
62ErrorUtilities.VerifyThrowArgumentNull(info, nameof(info)); 99ErrorUtilities.VerifyThrowArgumentNull(info, nameof(info));
Errors\RemoteErrorException.cs (3)
26ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(message), "Need error message."); 27ErrorUtilities.VerifyThrow(innerException != null, "Need the logger exception."); 78ErrorUtilities.VerifyThrow(messageResourceName != null, "Need error message.");
Introspector\Introspector.cs (5)
263ErrorUtilities.LaunchMsBuildDebuggerOnFatalError(); 279ErrorUtilities.VerifyThrow(child.TargetId.nodeId == parentEngine.NodeId, 284ErrorUtilities.VerifyThrow(parentProject != null, 292ErrorUtilities.VerifyThrow(parentStates.Count > 0, "Must find at least one matching context"); 323ErrorUtilities.VerifyThrow(waitingStates != null, "There must be a at least two requests at the child");
Introspector\TargetCycleDetector.cs (4)
95ErrorUtilities.VerifyThrow(targetNode.targetState == null, "Target should only be added once"); 241ErrorUtilities.VerifyThrow( 272ErrorUtilities.VerifyThrow(node.traversalIndex == GraphNode.InvalidIndex, 294ErrorUtilities.VerifyThrow(node.traversalIndex != GraphNode.InvalidIndex,
Introspector\TargetInProgressState.cs (1)
203ErrorUtilities.VerifyThrow(
Items\BuildItem.cs (45)
419ErrorUtilities.VerifyThrowArgumentNull(itemInclude, nameof(itemInclude)); 425ErrorUtilities.VerifyThrowInvalidOperation(XMakeElements.IllegalItemPropertyNames[itemName] == null, "CannotModifyReservedItem", itemName); 437ErrorUtilities.VerifyThrowArgumentLength(itemName, "itemType"); 505ErrorUtilities.VerifyThrowArgumentNull(taskItem, nameof(taskItem)); 562ErrorUtilities.VerifyThrow(name != null, "Get Name: Item has not been initialized."); 568ErrorUtilities.VerifyThrow(name != null, "Set Name: Item has not been initialized."); 569ErrorUtilities.VerifyThrowArgumentLength(value, "Name"); 572ErrorUtilities.VerifyThrowInvalidOperation(XMakeElements.IllegalItemPropertyNames[value] == null, "CannotModifyReservedItem", value); 633ErrorUtilities.ThrowInternalError("Item has not been initialized."); 640ErrorUtilities.VerifyThrowArgument(value != null, "NullIncludeNotAllowed", XMakeAttributes.include); 667ErrorUtilities.VerifyThrow(false, "Item has not been initialized."); 755ErrorUtilities.VerifyThrowInvalidOperation(IsBackedByXml, "CannotSetExcludeOnVirtualItem", XMakeAttributes.exclude); 758ErrorUtilities.VerifyThrowInvalidOperation(this.ParentPersistedItem == null, "CannotSetExcludeOnEvaluatedItem", XMakeAttributes.exclude); 788ErrorUtilities.VerifyThrowInvalidOperation(IsBackedByXml, "CannotSetCondition"); 858ErrorUtilities.VerifyThrow(((value == null) && (this.parentPersistedItemGroup != null)) || ((value != null) && (this.parentPersistedItemGroup == null)), 882ErrorUtilities.VerifyThrow(((value == null) && (this.parentPersistedItem != null)) || ((value != null) && (this.parentPersistedItem == null)), 1148ErrorUtilities.VerifyThrow(expander != null, "Null expander passed in."); 1156ErrorUtilities.VerifyThrow((this.evaluatedCustomMetadata != null) && (this.unevaluatedCustomMetadata != null), 1205ErrorUtilities.VerifyThrowArgumentLength(metadataName, nameof(metadataName)); 1206ErrorUtilities.VerifyThrow(this.unevaluatedCustomMetadata != null, "Item not initialized properly. unevaluatedCustomAttributes is null."); 1214ErrorUtilities.VerifyThrow(!unevaluatedCustomMetadata.ContainsKey(metadataName) || !FileUtilities.IsDerivableItemSpecModifier(metadataName), 1260ErrorUtilities.VerifyThrow(this.unevaluatedCustomMetadata != null, "Item not initialized properly. unevaluatedCustomMetadata is null."); 1310ErrorUtilities.VerifyThrow(this.evaluatedCustomMetadata != null, "Item not initialized properly. evaluatedCustomMetadata is null."); 1329ErrorUtilities.VerifyThrow(this.unevaluatedCustomMetadata != null, "Item not initialized properly. unevaluatedCustomMetadata is null."); 1358ErrorUtilities.VerifyThrow(this.unevaluatedCustomMetadata != null, "Item not initialized properly. unevaluatedCustomMetadata is null."); 1376ErrorUtilities.VerifyThrowArgumentNull(destinationItem, nameof(destinationItem)); 1389ErrorUtilities.VerifyThrow(this.evaluatedCustomMetadata != null, "Item not initialized properly."); 1454ErrorUtilities.VerifyThrow(this.evaluatedCustomMetadata != null, "Item not initialized properly. evaluatedCustomMetadata is null."); 1468ErrorUtilities.VerifyThrow(this.unevaluatedCustomMetadata != null, "Item not initialized properly. unevaluatedCustomMetadata is null."); 1515ErrorUtilities.VerifyThrowArgument(!FileUtilities.IsDerivableItemSpecModifier(metadataName), 1518ErrorUtilities.VerifyThrowArgumentLength(metadataName, nameof(metadataName)); 1519ErrorUtilities.VerifyThrowArgumentNull(metadataValue, nameof(metadataValue)); 1524ErrorUtilities.VerifyThrowInvalidOperation(XMakeElements.IllegalItemPropertyNames[metadataName] == null, 1527ErrorUtilities.VerifyThrow((this.unevaluatedCustomMetadata != null) && (this.evaluatedCustomMetadata != null), 1610ErrorUtilities.VerifyThrowArgument(!FileUtilities.IsItemSpecModifier(metadataName), "Shared.CannotChangeItemSpecModifiers", metadataName); 1612ErrorUtilities.VerifyThrow((this.unevaluatedCustomMetadata != null) && (this.evaluatedCustomMetadata != null), "Item not initialized properly."); 1661ErrorUtilities.VerifyThrow(itemSpecModifiers != null, 1682ErrorUtilities.VerifyThrow(parentProject != null, "This method should only get called on persisted items."); 1747ErrorUtilities.VerifyThrow(parentItemGroup != null, "Inconsistency -- is this item persisted or not?"); 1756ErrorUtilities.VerifyThrowNoAssert(parentItemGroup.ParentProject != null, "Persisted BuildItemGroup doesn't have parent project."); 1789ErrorUtilities.VerifyThrowInvalidOperation(!importedFromAnotherProject, "CannotModifyImportedProjects"); 1798ErrorUtilities.VerifyThrow(library != null, "Item definition library required when item is owned by project"); 1820ErrorUtilities.VerifyThrow(ParentPersistedItemGroup != null, "No parent BuildItemGroup for item to be removed."); 1826ErrorUtilities.VerifyThrow(childItem.IsBackedByXml, "Must be backed by XML"); 1953ErrorUtilities.VerifyThrow(unevaluatedCustomMetadata != null && evaluatedCustomMetadata != null, "Item is not initialized properly.");
Items\BuildItemGroup.cs (21)
228ErrorUtilities.VerifyThrow(itemsToImport != null, "Null BuildItemGroup passed in."); 229ErrorUtilities.VerifyThrow(itemsToImport != this, "Can't import into self."); 246ErrorUtilities.VerifyThrow(itemsToRemove != null, "Null BuildItemGroup passed in."); 247ErrorUtilities.VerifyThrow(itemsToRemove != this, "Can't remove self."); 257ErrorUtilities.VerifyThrow(itemsToRemove != null, "Null BuildItemGroup passed in."); 258ErrorUtilities.VerifyThrow(itemsToRemove != this, "Can't remove self."); 343ErrorUtilities.VerifyThrow(items != null, "BuildItemGroup has not been initialized."); 344ErrorUtilities.VerifyThrow(index <= items.Count, "Index out of range"); 382ErrorUtilities.VerifyThrow(itemToAdd.IsBackedByXml, "Item does not have an XML element"); 383ErrorUtilities.VerifyThrow(itemToAdd.ItemElement.OwnerDocument == xml.OwnerDocument, "Cannot add an Item with a different XML owner document."); 556ErrorUtilities.VerifyThrowInvalidOperation(deepClone, "ShallowCloneNotAllowed"); 698ErrorUtilities.VerifyThrowInvalidOperation(!IsPersisted, errorResourceName); 723ErrorUtilities.VerifyThrowInvalidOperation(IsPersisted, errorResourceName); 731ErrorUtilities.VerifyThrowInvalidOperation(!importedFromAnotherProject, "CannotModifyImportedProjects"); 739ErrorUtilities.VerifyThrow(this.items != null, "BuildItemGroup has not been initialized."); 747ErrorUtilities.VerifyThrowInvalidOperation(item?.ItemElement?.ParentNode == xml.Element, "ItemDoesNotBelongToItemGroup"); 756ErrorUtilities.VerifyThrow(item.ParentPersistedItemGroup == this, "This item doesn't belong to this itemgroup"); 772ErrorUtilities.VerifyThrow(pass == ProcessingPass.Pass2, "Pass should be Pass2 for ItemGroups."); 773ErrorUtilities.VerifyThrow(collectItemsIgnoringCondition || collectItemsRespectingCondition, "collectItemsIgnoringCondition and collectItemsRespectingCondition can't both be false."); 849ErrorUtilities.VerifyThrow(originalItem != null, "Can't add a null item to project."); 850ErrorUtilities.VerifyThrow(expander != null, "expander can't be null.");
Items\BuildItemGroupCollection.cs (2)
11using error = Microsoft.Build.BuildEngine.Shared.ErrorUtilities; 57error.VerifyThrow(groupingCollection != null, "GroupingCollection is null!");
Items\ItemDefinitionLibrary.cs (1)
165ErrorUtilities.VerifyThrowNoAssert(evaluated, "Must be evaluated to query");
Items\ItemExpander.cs (4)
225ErrorUtilities.VerifyThrow(items != null, "ItemizeItemVector shouldn't give us null."); 271ErrorUtilities.VerifyThrow(itemVector.Success, "Need a valid item vector."); 348ErrorUtilities.VerifyThrow(itemVector.Success, "Need a valid item vector."); 387ErrorUtilities.VerifyThrow(itemUnderTransformation != null, "Need item to get metadata value from.");
Items\TaskItem.cs (8)
39ErrorUtilities.VerifyThrow(itemSpec != null, "Need to specify item-spec."); 51ErrorUtilities.VerifyThrow(item != null, "Need to specify backing item."); 70ErrorUtilities.VerifyThrowArgumentNull(value, "ItemSpec"); 135ErrorUtilities.VerifyThrowArgumentNull(metadataName, nameof(metadataName)); 149ErrorUtilities.VerifyThrowArgumentLength(metadataName, nameof(metadataName)); 150ErrorUtilities.VerifyThrowArgumentNull(metadataValue, nameof(metadataValue)); 162ErrorUtilities.VerifyThrowArgumentNull(metadataName, nameof(metadataName)); 178ErrorUtilities.VerifyThrowArgumentNull(destinationItem, nameof(destinationItem));
ItemsAndProperties\Lookup.cs (11)
120ErrorUtilities.VerifyThrow(itemDefinitionLibrary != null, "Expect library"); 300ErrorUtilities.VerifyThrowNoAssert(lookupEntries.Count >= 2, "Too many calls to Leave()."); 626ErrorUtilities.VerifyThrow(existing == null, "Cannot add an itemgroup of this type."); 652ErrorUtilities.VerifyThrow(property.Type == PropertyType.OutputProperty, "Expected output property"); 687ErrorUtilities.VerifyThrow(!item.IsPartOfProjectManifest, "Cannot dynamically add manifest items"); 703ErrorUtilities.VerifyThrow(!item.IsPartOfProjectManifest, "Cannot dynamically add manifest items"); 837ErrorUtilities.VerifyThrow(!cloneTable.ContainsKey(clone), "Should be new, not already in table!"); 1020ErrorUtilities.VerifyThrowNoAssert(!tableOfItemsOfSameType.ContainsKey(item), "Item should not be in table"); 1038ErrorUtilities.VerifyThrowNoAssert(!existing.Items.Contains(item), "Item should not be in table"); 1071ErrorUtilities.VerifyThrowNoAssert(threadIdThatEnteredCurrentScope == Thread.CurrentThread.ManagedThreadId, "Only the thread that entered a scope may modify or leave it"); 1080ErrorUtilities.VerifyThrowNoAssert(lookupEntries.Count > 1, "Operation in outer scope not supported");
LocalProvider\LocalCallDescriptor.cs (8)
76ErrorUtilities.VerifyThrow(false, "This description doesn't support this operation"); 84ErrorUtilities.VerifyThrow(false, "This description doesn't support this operation"); 93ErrorUtilities.VerifyThrow(false, "This description doesn't support this operation"); 99ErrorUtilities.VerifyThrow(false, "This description doesn't support this operation"); 324ErrorUtilities.VerifyThrow(buildRequests != null, "buildRequests should not be null"); 397ErrorUtilities.VerifyThrow(buildResult != null, "buildResult should not be null"); 451ErrorUtilities.VerifyThrow(buildEvents != null, "buildRequests should not be null"); 524ErrorUtilities.VerifyThrowArgumentNull(node, "node is null");
LocalProvider\LocalNode.cs (3)
132ErrorUtilities.VerifyThrow(this.sharedMemory.IsUsable, 306ErrorUtilities.VerifyThrow(localNode.node == null, 468ErrorUtilities.VerifyThrow(node == null, "Expected node to be null on activation.");
LocalProvider\LocalNodeCallback.cs (6)
62ErrorUtilities.VerifyThrow(this.sharedMemory.IsUsable, 88ErrorUtilities.VerifyThrow(Thread.CurrentThread != writerThread, "Should never call this function from the writer thread"); 123ErrorUtilities.VerifyThrow(replyData?.waitEvent != null, 142ErrorUtilities.VerifyThrow(nodeCommandQueue.Count == 0, "Expect all event to be flushed"); 269ErrorUtilities.VerifyThrow(reply != null, "We must have a reply if the wait event was set"); 318ErrorUtilities.VerifyThrow(Thread.CurrentThread != writerThread, "Should never call this function from the writer thread");
LocalProvider\LocalNodeProvider.cs (12)
125ErrorUtilities.VerifyThrowArgumentNull(parameterName, nameof(parameterName)); 183ErrorUtilities.VerifyThrow(nodeIds.Length == nodeData.Length, "Expected an ID for each node"); 193ErrorUtilities.VerifyThrow(nodeLoggers != null, "Must call Initialize first"); 194ErrorUtilities.VerifyThrow(loggerDescription != null, "Logger description should be non-null"); 204ErrorUtilities.VerifyThrow(nodeLoggers != null, "Must call Initialize first"); 205ErrorUtilities.VerifyThrow(nodeIndex < nodeData.Length && nodeIndex >= 0, "Node index must be within array boundaries"); 230ErrorUtilities.VerifyThrow(nodeIndex < nodeData.Length && nodeIndex >= 0, "Node index must be within array boundaries"); 275ErrorUtilities.VerifyThrow(nodeIndex < nodeData.Length && nodeIndex >= 0, "Node index must be within array boundaries"); 276ErrorUtilities.VerifyThrow(nodeData[nodeIndex].NodeState == NodeState.Launched, "Node must be launched before result can be posted"); 522ErrorUtilities.VerifyThrow(i < nodeData.Length, "Expected to find a node to decrement count"); 558ErrorUtilities.VerifyThrow(i < nodeData.Length, "Expected to find a node to decrement count"); 763ErrorUtilities.VerifyThrow(File.Exists(msbuildLocation), "Msbuild.exe cannot be found at: " + msbuildLocation);
LocalProvider\SharedMemory.cs (3)
267ErrorUtilities.VerifyThrow(false, "Unknown shared memory type."); 700ErrorUtilities.VerifyThrow(type == SharedMemoryType.ReadOnly, "Should only be calling Read from a readonly shared memory object"); 879ErrorUtilities.VerifyThrow(false, "Should not be here, ObjectId:" + objectId + "Next:" + readStream.ReadByte());
Logging\BaseConsoleLogger.cs (1)
903ErrorUtilities.VerifyThrowArgumentNull(parameterName, nameof(parameterName));
Logging\ConsoleLogger.cs (2)
100ErrorUtilities.VerifyThrowArgumentNull(write, nameof(write)); 295ErrorUtilities.VerifyThrowInvalidOperation(consoleLogger != null, "MustCallInitializeBeforeApplyParameter");
Logging\DistributedLoggers\ConfigurableForwardingLogger.cs (2)
129ErrorUtilities.VerifyThrowArgumentNull(parameterName, nameof(parameterName)); 158ErrorUtilities.VerifyThrowArgumentNull(eventSource, nameof(eventSource));
Logging\DistributedLoggers\DistributedFileLogger.cs (2)
93ErrorUtilities.VerifyThrowArgumentNull(eventSource, nameof(eventSource)); 173ErrorUtilities.VerifyThrow(false, "Should not be getting verbosity from distributed file logger");
Logging\FileLogger.cs (1)
50ErrorUtilities.VerifyThrowArgumentNull(eventSource, nameof(eventSource));
Logging\NullCentralLogger.cs (1)
60ErrorUtilities.VerifyThrowInvalidOperation(false, "Should not recieve any events other than build started or finished");
Logging\ParallelLogger\ParallelConsoleLogger.cs (15)
484ErrorUtilities.VerifyThrowArgumentNull(e.BuildEventContext, "BuildEventContext"); 485ErrorUtilities.VerifyThrowArgumentNull(e.ParentProjectBuildEventContext, "ParentProjectBuildEventContext"); 539ErrorUtilities.VerifyThrowArgumentNull(e.BuildEventContext, "BuildEventContext"); 544ErrorUtilities.VerifyThrow(startedEvent != null, "Started event should not be null in the finished event handler"); 710ErrorUtilities.VerifyThrowArgumentNull(e.BuildEventContext, "BuildEventContext"); 731ErrorUtilities.VerifyThrowArgumentNull(e.BuildEventContext, "BuildEventContext"); 745ErrorUtilities.VerifyThrow(startedEvent != null, "Started event should not be null in the finished event handler"); 778ErrorUtilities.VerifyThrowArgumentNull(e.BuildEventContext, "BuildEventContext"); 819ErrorUtilities.VerifyThrowArgumentNull(e.BuildEventContext, "BuildEventContext"); 853ErrorUtilities.VerifyThrowArgumentNull(e.BuildEventContext, "BuildEventContext"); 899ErrorUtilities.VerifyThrowArgumentNull(e.BuildEventContext, "BuildEventContext"); 952ErrorUtilities.VerifyThrowArgumentNull(e.BuildEventContext, "BuildEventContext"); 980ErrorUtilities.VerifyThrow(false, "Impossible"); 1266ErrorUtilities.VerifyThrow(startedEvent != null, "Project Started should not be null in deferred target started"); 1374ErrorUtilities.VerifyThrowArgumentNull(e.BuildEventContext, "BuildEventContext");
Logging\SerialConsoleLogger.cs (4)
521ErrorUtilities.VerifyThrow(false, "Impossible"); 687ErrorUtilities.VerifyThrow(false, "Unexpected frame type."); 727ErrorUtilities.VerifyThrow(this.Verbosity < LoggerVerbosity.Detailed, 738ErrorUtilities.VerifyThrow(false, "Unexpected frame type.");
Properties\BuildProperty.cs (18)
217ErrorUtilities.VerifyThrow(propertyElement != null, 265ErrorUtilities.VerifyThrowArgumentLength(propertyName, nameof(propertyName)); 266ErrorUtilities.VerifyThrowArgumentNull(propertyValue, nameof(propertyValue)); 296ErrorUtilities.VerifyThrowInvalidOperation(XMakeElements.IllegalItemPropertyNames[this.Name] == null, 376ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(this.propertyName) && (this.propertyValue != null), 395ErrorUtilities.VerifyThrow(this.propertyValue != null, 403ErrorUtilities.VerifyThrowInvalidOperation(this.type != PropertyType.ImportedProperty, 406ErrorUtilities.VerifyThrowInvalidOperation(this.type != PropertyType.EnvironmentProperty, 409ErrorUtilities.VerifyThrowInvalidOperation(this.type != PropertyType.ReservedProperty, 412ErrorUtilities.VerifyThrowInvalidOperation(this.type != PropertyType.GlobalProperty, 427ErrorUtilities.VerifyThrowArgumentNull(value, "Value"); 533ErrorUtilities.VerifyThrowInvalidOperation(this.propertyElement != null, 537ErrorUtilities.VerifyThrowInvalidOperation(this.Type != PropertyType.ImportedProperty, 586ErrorUtilities.VerifyThrow(((value == null) && (this.parentPersistedPropertyGroup != null)) || ((value != null) && (this.parentPersistedPropertyGroup == null)), 608ErrorUtilities.VerifyThrow(expander != null, "Expander required to evaluated property."); 623ErrorUtilities.VerifyThrow(this.ParentPersistedPropertyGroup.ParentProject != null, "Persisted BuildPropertyGroup doesn't have parent project."); 673ErrorUtilities.VerifyThrowInvalidOperation(deepClone, "ShallowCloneNotAllowed"); 683ErrorUtilities.VerifyThrow(Object.ReferenceEquals(clone.Value, this.Value), "Clone value should be identical reference");
Properties\BuildPropertyGroup.cs (36)
16using error = Microsoft.Build.BuildEngine.Shared.ErrorUtilities; 208error.VerifyThrow(propertyGroupElement != null, "Need valid <PropertyGroup> element."); 298error.VerifyThrow(ownerDocument != null, "Need valid XmlDocument owner for this property group."); 352error.VerifyThrowInvalidOperation(!this.importedFromAnotherProject, 469error.VerifyThrow(this.propertyTableByName == null, "Did not expect a property hash table."); 481error.VerifyThrow(false, "Expected either a hash table or an array list of properties."); 512ErrorUtilities.VerifyThrow(false, "BuildPropertyGroup is imported, doesn't have an ownerDocument, and importedFilename is null."); 518ErrorUtilities.VerifyThrow(this.importedFromAnotherProject, "You can't set the imported filename on a non-imported PropertyGroup."); 554error.VerifyThrowArgument(value != null, "CannotSetPropertyToNull"); 558error.VerifyThrowArgument(String.Equals(propertyName, value.Name, StringComparison.OrdinalIgnoreCase), 583error.VerifyThrow(this.propertyTableByName == null, "Did not expect a property hash table."); 598error.VerifyThrow(false, "Expected either a hash table or an array list of properties."); 687error.VerifyThrowInvalidOperation(deepClone, "ShallowCloneNotAllowed"); 825ErrorUtilities.VerifyThrowInvalidOperation(parentProject?.IsBuilding != true, "CannotSetPropertyDuringBuild"); 839error.VerifyThrow(existingProperty != null, "If we've overridden this property before, it must exist in the main property table."); 840error.VerifyThrow(existingProperty.Type == PropertyType.OutputProperty, "If we've overriden this property before, it must be stored as an output property in the main property table."); 844error.VerifyThrow((existingProperty == null) || (existingProperty.Type != PropertyType.OutputProperty), 918error.VerifyThrowInvalidOperation(!this.importedFromAnotherProject, 1011error.VerifyThrowInvalidOperation(!this.importedFromAnotherProject, 1016error.VerifyThrow(propertyToAdd.PropertyElement != null, "BuildProperty does not have an XML element"); 1017error.VerifyThrow(propertyToAdd.PropertyElement.OwnerDocument == this.ownerDocument, 1038error.VerifyThrowArgumentNull(property, nameof(property)); 1048error.VerifyThrowInvalidOperation(!this.importedFromAnotherProject, 1202error.VerifyThrowInvalidOperation(!this.importedFromAnotherProject || clearImportedPropertyGroup, 1383ErrorUtilities.VerifyThrow(compareToPropertyGroup != null, "Received a null propertyBag!"); 1407ErrorUtilities.VerifyThrow(leftProperty != null, "How can we have a null entry in the hash table?"); 1450error.VerifyThrowInvalidOperation(IsVirtual, errorResourceName, XMakeElements.propertyGroup); 1455error.VerifyThrow(this.propertyList == null, 1458error.VerifyThrow(this.propertyTableByName != null, 1483error.VerifyThrowInvalidOperation(IsPersisted, errorResourceName, arg); 1487error.VerifyThrow(this.propertyList != null, 1489error.VerifyThrow(this.propertyTableByName == null, 1491error.VerifyThrow(this.ownerDocument != null, 1504error.VerifyThrowInvalidOperation(propertyElement != null, 1506error.VerifyThrowInvalidOperation(propertyElement.ParentNode == this.propertyGroupElement, 1526ErrorUtilities.VerifyThrow(pass == ProcessingPass.Pass1, "Pass should be Pass1 for PropertyGroups.");
Resources\AssemblyResources.cs (1)
35ErrorUtilities.VerifyThrow(msbuildExeResourceManager == null, "Only one extra resource manager");
Shared\AssemblyLoadInfo.cs (4)
29ErrorUtilities.VerifyThrow((!string.IsNullOrEmpty(assemblyName)) || (!string.IsNullOrEmpty(assemblyFile)), 31ErrorUtilities.VerifyThrow((assemblyName == null) || (assemblyFile == null), 78ErrorUtilities.VerifyThrow(assemblyFile == null, 85ErrorUtilities.VerifyThrow(assemblyFile != null,
Shared\BuildEventFileInfo.cs (3)
66ErrorUtilities.VerifyThrow(file != null, "Need filename/path."); 82ErrorUtilities.VerifyThrow(e != null, "Need exception context."); 98ErrorUtilities.VerifyThrow(e != null, "Need exception context.");
Shared\ConversionUtilities.cs (3)
11using error = Microsoft.Build.BuildEngine.Shared.ErrorUtilities; 40error.VerifyThrowArgument(false, "Shared.CannotConvertStringToBool", parameterValue); 114ErrorUtilities.VerifyThrow(false, "Cannot numeric evaluate");
Shared\EscapingUtilities.cs (2)
49ErrorUtilities.VerifyThrow(escapedString != null, "Null strings not allowed."); 118ErrorUtilities.VerifyThrow(unescapedString != null, "Null strings not allowed.");
Shared\EventArgsFormatting.cs (2)
57ErrorUtilities.VerifyThrowArgumentNull(e, nameof(e)); 86ErrorUtilities.VerifyThrowArgumentNull(e, nameof(e));
Shared\FileMatcher.cs (9)
89ErrorUtilities.VerifyThrow(false, "Unexpected filesystem entity type."); 263ErrorUtilities.VerifyThrow(!HasWildcards(path), 333ErrorUtilities.VerifyThrow(entries.Length == 1, 581ErrorUtilities.VerifyThrow((filespec != null) || (regexFileMatch != null), 584ErrorUtilities.VerifyThrow(remainingWildcardDirectory != null, "Expected non-null remaning wildcard directory."); 636ErrorUtilities.VerifyThrow(indexOfNextSlash != -1, "Slash should be guaranteed."); 805ErrorUtilities.VerifyThrow(matchFileExpression.Length <= sizeBefore, 818ErrorUtilities.VerifyThrow(matchFileExpression.Length <= sizeBefore, 837ErrorUtilities.VerifyThrow(matchFileExpression.Length <= sizeBefore,
Shared\FileUtilities.cs (10)
314ErrorUtilities.VerifyThrow(itemSpec != null, "Need item-spec to modify."); 315ErrorUtilities.VerifyThrow(modifier != null, "Need modifier to apply to item-spec."); 322ErrorUtilities.VerifyThrow((string)cachedModifiers[String.Empty] == itemSpec, 413ErrorUtilities.VerifyThrow((modifiedItemSpec.Length > root.Length) && IsSlash(modifiedItemSpec[root.Length]), 486ErrorUtilities.VerifyThrow(false, "\"{0}\" is not a valid item-spec modifier.", modifier); 496ErrorUtilities.VerifyThrowInvalidOperation(false, "Shared.InvalidFilespecForTransform", modifier, itemSpec, e.Message); 499ErrorUtilities.VerifyThrow(modifiedItemSpec != null, "The item-spec modifier \"{0}\" was not evaluated.", modifier); 802ErrorUtilities.VerifyThrowArgumentNull(basePath, nameof(basePath)); 803ErrorUtilities.VerifyThrowArgumentLength(path, nameof(path)); 835ErrorUtilities.VerifyThrowArgumentLength(path, nameof(path));
Shared\FrameworkLocationHelper.cs (1)
394ErrorUtilities.VerifyThrowArgument(false, "FrameworkLocationHelper.UnsupportedFrameworkVersion", frameworkVersion);
Shared\LoadedType.cs (2)
32ErrorUtilities.VerifyThrow(type != null, "We must have the type."); 33ErrorUtilities.VerifyThrow(assembly != null, "We must have the assembly the type was loaded from.");
Shared\NativeMethodsShared.cs (1)
80ErrorUtilities.VerifyThrow(i == 0, "We should not have to resize the buffer twice.");
Shared\ProjectFileErrorUtilities.cs (1)
61ErrorUtilities.VerifyThrow(projectFile != null, "Must specify the invalid project file. If project file is not available, use VerifyThrowInvalidProject() and pass in the XML node instead.");
Shared\ProjectInSolution.cs (1)
346ErrorUtilities.VerifyThrow(projectName != null, "Null strings not allowed.");
Shared\ProjectWriter.cs (2)
165ErrorUtilities.VerifyThrow(itemVectorTransforms.Count == (surroundingTextPieces.Length - 1), 177ErrorUtilities.VerifyThrow(itemVectorTransform.Success,
Shared\SolutionParser.cs (8)
18using error = Microsoft.Build.BuildEngine.Shared.ErrorUtilities; 297error.VerifyThrow(reader != null, "ParseFileHeader(): reader is null!"); 318error.VerifyThrow(!string.IsNullOrEmpty(solutionFile), "ParseSolutionFile() got a null solution file!"); 426error.VerifyThrow(reader != null, "ParseFileHeader(): reader is null!"); 467error.VerifyThrow(versionString != null, "ValidateSolutionFileVersion() got a null line!"); 529error.VerifyThrow(!string.IsNullOrEmpty(firstLine), "ParseProject() got a null firstLine!"); 530error.VerifyThrow(reader != null, "ParseProject() got a null reader!"); 781ErrorUtilities.VerifyThrow(proj.RelativePath != null, "Project relative path cannot be null.");
Shared\TypeLoader.cs (1)
32ErrorUtilities.VerifyThrow(isDesiredType != null, "need a type filter");
Shared\XmlUtilities.cs (3)
69ErrorUtilities.VerifyThrow(node != null, "Need XML node."); 70ErrorUtilities.VerifyThrow(defaultFile != null, "Must specify the default file to use."); 120ErrorUtilities.VerifyThrowArgument(false, "NameInvalid", name, name[firstInvalidCharLocation]);
Solution\SolutionWrapperProject.cs (1)
1680ErrorUtilities.VerifyThrow(project != null, "We should always have a project for this method");
Tasks\IntrinsicTask.cs (2)
37ErrorUtilities.VerifyThrow(IsIntrinsicTaskName(taskNodeXmlElement.Name), "Only PropertyGroup and ItemGroup are known intrinsic tasks"); 75ErrorUtilities.VerifyThrow(lookup != null, "Need to specify lookup.");
Utilities\EngineFileUtilities.cs (2)
30ErrorUtilities.VerifyThrow(filespec.Length > 0, "Need a valid file-spec."); 59ErrorUtilities.VerifyThrow(fileList != null, "We must have a list of files here, even if it's empty.");
Xml\BuildItemGroupChildXml.cs (3)
47ErrorUtilities.VerifyThrow(element != null, "Need an XML node."); 48ErrorUtilities.VerifyThrowNoAssert(childTypeExpected != ChildType.Invalid, "Can't expect invalid childtype"); 137ErrorUtilities.ThrowInternalError("Unexpected child type");
Xml\BuildItemGroupXml.cs (2)
36ErrorUtilities.VerifyThrowNoAssert(element != null, "Need a valid XML node."); 48ErrorUtilities.VerifyThrowNoAssert(owner != null, "Need valid XmlDocument owner for this item group.");
Xml\ProjectXmlUtilities.cs (1)
88ErrorUtilities.VerifyThrowNoAssert(String.Equals(element.Name, expected, StringComparison.Ordinal), "Expected " + expected + " element, got " + element.Name);