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!");
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\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\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\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,
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.");
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);
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.");