426 references to VerifyThrow
Microsoft.Build.Engine (426)
Caching\CacheEntryCustomSerializer.cs (1)
60ErrorUtilities.VerifyThrow(false, "Should not get to the default of CacheEntryCustomSerializer CreateFromStream");
Choose\Choose.cs (2)
78error.VerifyThrow(chooseElement != null, "Need valid <Choose> element."); 241ErrorUtilities.VerifyThrow(pass == ProcessingPass.Pass2, "ProcessingPass must be Pass1 or Pass2.");
Choose\GroupEnumeratorHelper.cs (1)
62error.VerifyThrow(groupingCollection != null, "GroupingCollection is null");
Choose\GroupingCollection.cs (15)
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 (1)
65error.VerifyThrow(whenElement != null, "Need valid (non-null) <When> element.");
Collections\CopyOnWriteHashtable.cs (1)
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\BuildResult.cs (1)
270ErrorUtilities.VerifyThrow(resultByTarget != null, "resultsByTarget cannot be null");
Engine\BuildTask.cs (3)
72error.VerifyThrow(taskElement != null, "Need a valid XML node."); 75error.VerifyThrow(parentTarget != null, "Need a valid target parent."); 235ErrorUtilities.VerifyThrow(this.ParentTarget != null, "ParentTarget should not be null");
Engine\CacheScope.cs (5)
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 (18)
325ErrorUtilities.VerifyThrow(startupDirectory != null, "Need startup directory"); 886error.VerifyThrow(toolsetVersion != null, "Expect non-null toolset version"); 887error.VerifyThrow(toolsetStateMap.ContainsKey(toolsetVersion), "Expected to see the toolset in the table"); 1010ErrorUtilities.VerifyThrow(this.defaultToolsVersion != null, 1370ErrorUtilities.VerifyThrow(project.IsLoadedByHost, "How did the caller get a reference to this Project object if it's not marked as loaded?"); 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"); 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, 2483error.VerifyThrow(buildRequest.GlobalProperties != null, "Global Properties should not be null"); 2603ErrorUtilities.VerifyThrow(cacheOfBuildingProjects.GetRemoteProject(projectFileInfo.FullName, buildRequest.GlobalProperties, toolsVersionToUse) == EngineCallback.invalidNode, 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 (14)
67ErrorUtilities.VerifyThrow(false, "This method should be defined in a subclass"); 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 (3)
126ErrorUtilities.VerifyThrow(parentModule != null, "No parent module."); 127ErrorUtilities.VerifyThrow(loggingServices != null, "No logging services."); 128ErrorUtilities.VerifyThrow(projectFileOfTaskNode != null, "Need project file path string");
Engine\EventSource.cs (1)
575ErrorUtilities.VerifyThrow(false, "Unknown event args type.");
Engine\Expander.cs (7)
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."); 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 (9)
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!");
Engine\ItemBucket.cs (1)
71ErrorUtilities.VerifyThrow(lookup != null, "Need lookup.");
Engine\Node.cs (3)
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");
Engine\NodeLoggingEvent.cs (1)
179ErrorUtilities.VerifyThrow(false, "Should not get to the default of getBuildEventArgFromId ID:" + id);
Engine\NodeManager.cs (3)
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 (23)
758ErrorUtilities.VerifyThrow(false, "How did this.buildEnabled get a bogus 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, 2014ErrorUtilities.VerifyThrow(projectXml != null, "Need project XML."); 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?"); 2629ErrorUtilities.VerifyThrow(propertyGroupToRemove.ParentCollection != null, "Why doesn't this PG have a parent collection?"); 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?"); 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\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 (6)
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, 775error.VerifyThrow(this.taskElementList != null, "Arraylist not initialized!"); 808error.VerifyThrow(this.taskElementList != null, "Arraylist not initialized!");
Engine\TargetCollection.cs (9)
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."); 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\ToolsetReader.cs (1)
186ErrorUtilities.VerifyThrow(Constants.defaultToolsVersion == "2.0", "Getting 2.0 FX path so default should be 2.0");
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 (5)
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\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 (4)
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 (24)
562ErrorUtilities.VerifyThrow(name != null, "Get Name: Item has not been initialized."); 568ErrorUtilities.VerifyThrow(name != null, "Set Name: Item has not been initialized."); 667ErrorUtilities.VerifyThrow(false, "Item has not been initialized."); 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), 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."); 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."); 1527ErrorUtilities.VerifyThrow((this.unevaluatedCustomMetadata != null) && (this.evaluatedCustomMetadata != null), 1612ErrorUtilities.VerifyThrow((this.unevaluatedCustomMetadata != null) && (this.evaluatedCustomMetadata != null), "Item not initialized properly."); 1682ErrorUtilities.VerifyThrow(parentProject != null, "This method should only get called on persisted items."); 1747ErrorUtilities.VerifyThrow(parentItemGroup != null, "Inconsistency -- is this item persisted or not?"); 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 (16)
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."); 739ErrorUtilities.VerifyThrow(this.items != null, "BuildItemGroup has not been initialized."); 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 (1)
57error.VerifyThrow(groupingCollection != null, "GroupingCollection is null!");
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 (2)
39ErrorUtilities.VerifyThrow(itemSpec != null, "Need to specify item-spec."); 51ErrorUtilities.VerifyThrow(item != null, "Need to specify backing item.");
ItemsAndProperties\Lookup.cs (6)
120ErrorUtilities.VerifyThrow(itemDefinitionLibrary != null, "Expect library"); 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!");
LocalProvider\LocalCallDescriptor.cs (7)
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");
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 (11)
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\DistributedLoggers\DistributedFileLogger.cs (1)
173ErrorUtilities.VerifyThrow(false, "Should not be getting verbosity from distributed file logger");
Logging\ParallelLogger\ParallelConsoleLogger.cs (4)
544ErrorUtilities.VerifyThrow(startedEvent != null, "Started event should not be null in the finished event handler"); 745ErrorUtilities.VerifyThrow(startedEvent != null, "Started event should not be null in the finished event handler"); 980ErrorUtilities.VerifyThrow(false, "Impossible"); 1266ErrorUtilities.VerifyThrow(startedEvent != null, "Project Started should not be null in deferred target started");
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 (7)
217ErrorUtilities.VerifyThrow(propertyElement != null, 376ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(this.propertyName) && (this.propertyValue != null), 395ErrorUtilities.VerifyThrow(this.propertyValue != null, 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."); 683ErrorUtilities.VerifyThrow(Object.ReferenceEquals(clone.Value, this.Value), "Clone value should be identical reference");
Properties\BuildPropertyGroup.cs (21)
208error.VerifyThrow(propertyGroupElement != null, "Need valid <PropertyGroup> element."); 298error.VerifyThrow(ownerDocument != null, "Need valid XmlDocument owner for this property group."); 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."); 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."); 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), 1016error.VerifyThrow(propertyToAdd.PropertyElement != null, "BuildProperty does not have an XML element"); 1017error.VerifyThrow(propertyToAdd.PropertyElement.OwnerDocument == this.ownerDocument, 1383ErrorUtilities.VerifyThrow(compareToPropertyGroup != null, "Received a null propertyBag!"); 1407ErrorUtilities.VerifyThrow(leftProperty != null, "How can we have a null entry in the hash table?"); 1455error.VerifyThrow(this.propertyList == null, 1458error.VerifyThrow(this.propertyTableByName != null, 1487error.VerifyThrow(this.propertyList != null, 1489error.VerifyThrow(this.propertyTableByName == null, 1491error.VerifyThrow(this.ownerDocument != null, 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 (1)
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\FileMatcher.cs (7)
89ErrorUtilities.VerifyThrow(false, "Unexpected filesystem entity type."); 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 (4)
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]),
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 (7)
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 (2)
69ErrorUtilities.VerifyThrow(node != null, "Need XML node."); 70ErrorUtilities.VerifyThrow(defaultFile != null, "Must specify the default file to use.");
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 (1)
47ErrorUtilities.VerifyThrow(element != null, "Need an XML node.");