424 references to VerifyThrow
Microsoft.Build (421)
BackEnd\BuildManager\BuildManager.cs (9)
935ErrorUtilities.VerifyThrow(configuration.Project != null, "Configuration should have been loaded."); 1067ErrorUtilities.VerifyThrow(_buildSubmissions.Count == 0, "All submissions not yet complete."); 1068ErrorUtilities.VerifyThrow(_activeNodes.Count == 0, "All nodes not yet shut down."); 1496ErrorUtilities.VerifyThrow(!submission.IsCompleted, "Submission already complete."); 1535ErrorUtilities.VerifyThrow( 1609ErrorUtilities.VerifyThrow(resolvedConfiguration is not null, "Cannot call project cache without having BuildRequestConfiguration"); 2226ErrorUtilities.VerifyThrow( 3481ErrorUtilities.VerifyThrow(_configCache == null, "caches must not be set at this point"); 3482ErrorUtilities.VerifyThrow(_resultsCache == null, "caches must not be set at this point");
BackEnd\BuildManager\BuildSubmission.cs (2)
199ErrorUtilities.VerifyThrow(BuildResult != null, 217ErrorUtilities.VerifyThrow(BuildRequest != null,
BackEnd\BuildManager\CacheAggregator.cs (5)
34ErrorUtilities.VerifyThrow(!_aggregated, "Cannot add after aggregation"); 41ErrorUtilities.VerifyThrow(!_aggregated, "Cannot aggregate twice"); 61ErrorUtilities.VerifyThrow(configs.Length == results.Length, "Assuming 1-to-1 mapping between configs and results. Otherwise it means the caches are either not minimal or incomplete"); 75ErrorUtilities.VerifyThrow(_aggregatedConfigCache.GetMatchingConfiguration(config) == null, "Input caches should not contain entries for the same configuration"); 88ErrorUtilities.VerifyThrow(seenConfigIds.Contains(result.ConfigurationId), "Each result should have a corresponding configuration. Otherwise the caches are not consistent");
BackEnd\BuildManager\LegacyThreadingData.cs (2)
58ErrorUtilities.VerifyThrow(_instanceForMainThread == null || (_instanceForMainThread != null && value == null) || (_instanceForMainThread == value), "Should not assign to instanceForMainThread twice without cleaning it"); 158ErrorUtilities.VerifyThrow(
BackEnd\Components\BuildComponentFactoryCollection.cs (1)
245ErrorUtilities.VerifyThrow(Pattern == CreationPattern.Singleton, "Cannot shutdown non-singleton.");
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (10)
206ErrorUtilities.VerifyThrow(_componentHost != null, "BuildRequestEngine not initialized by component host."); 239ErrorUtilities.VerifyThrow(_nodeLoggingContext != null, "Node logging context not set."); 549ErrorUtilities.VerifyThrow(_componentHost != null, "No host object set"); 640ErrorUtilities.VerifyThrow(_componentHost == null, "BuildRequestEngine already initialized!"); 779ErrorUtilities.VerifyThrow(activeEntry == null, "Multiple active requests"); 960ErrorUtilities.VerifyThrow(_componentHost != null, "No host object set"); 1160ErrorUtilities.VerifyThrow(_componentHost != null, "No host object set"); 1341ErrorUtilities.VerifyThrow((requestsToIssue == null) || (requestsToIssue.Count == 0), "Entry shouldn't be ready if we also issued requests."); 1394ErrorUtilities.VerifyThrow(config.WasGeneratedByNode, "InvalidConfigurationId"); 1396ErrorUtilities.VerifyThrow(_unresolvedConfigurationsById.ContainsKey(config.ConfigurationId), "NoUnresolvedConfiguration");
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (12)
129ErrorUtilities.VerifyThrow(requestConfiguration.ConfigurationId == request.ConfigurationId, "Configuration id mismatch"); 187ErrorUtilities.VerifyThrow(value == null || _requestBuilder == null, "Request Builder already set."); 204ErrorUtilities.VerifyThrow(configuration.WasGeneratedByNode, "Configuration has already been resolved."); 348ErrorUtilities.VerifyThrow(result.CircularDependency, "Received result for target in progress and it wasn't a circular dependency error."); 380ErrorUtilities.VerifyThrow(!_outstandingResults.ContainsKey(result.NodeRequestId), "Request already contains results."); 417ErrorUtilities.VerifyThrow(_unresolvedConfigurations == null, "All configurations must be resolved before Continue may be called."); 418ErrorUtilities.VerifyThrow(_outstandingRequests == null, "All outstanding requests must have been satisfied."); 489ErrorUtilities.VerifyThrow(Result == null, "Entry already Completed."); 497ErrorUtilities.VerifyThrow(_unresolvedConfigurations == null, "Entry must not have any unresolved configurations."); 498ErrorUtilities.VerifyThrow(_outstandingRequests == null, "Entry must have no outstanding requests."); 499ErrorUtilities.VerifyThrow(_outstandingResults == null, "Results must be consumed before request may be completed."); 528ErrorUtilities.VerifyThrow(addToIssueList, "Requests with unresolved configurations should always be added to the issue list.");
BackEnd\Components\Caching\ConfigCache.cs (3)
77ErrorUtilities.VerifyThrow(config.ConfigurationId != 0, "Invalid configuration ID"); 148ErrorUtilities.VerifyThrow(configuration.IsLoaded, "Request to create configuration did not honor request to also load project."); 186ErrorUtilities.VerifyThrow(!configurations.ById.IsEmpty, "No configurations exist from which to obtain the smallest configuration id.");
BackEnd\Components\Caching\ConfigCacheWithOverride.cs (4)
56ErrorUtilities.VerifyThrow(!CurrentCache.HasConfiguration(configId), "caches should not overlap"); 79ErrorUtilities.VerifyThrow(CurrentCache.GetMatchingConfiguration(config) == null, "caches should not overlap"); 96ErrorUtilities.VerifyThrow(CurrentCache.GetMatchingConfiguration(configMetadata) == null, "caches should not overlap"); 118ErrorUtilities.VerifyThrow(!CurrentCache.HasConfiguration(configId), "caches should not overlap");
BackEnd\Components\Caching\RegisteredTaskObjectCache.cs (2)
37ErrorUtilities.VerifyThrow(IsCollectionEmptyOrUncreated(RegisteredTaskObjectLifetime.Build), "Build lifetime objects were not disposed at the end of the build"); 71ErrorUtilities.VerifyThrow(IsCollectionEmptyOrUncreated(RegisteredTaskObjectLifetime.Build), "Build lifetime objects were not disposed at the end of the build");
BackEnd\Components\Caching\ResultsCache.cs (3)
115ErrorUtilities.VerifyThrow(request.IsConfigurationResolved, "UnresolvedConfigurationInRequest"); 123ErrorUtilities.VerifyThrow(result.HasResultsForTarget(target), "No results in cache for target " + target); 168ErrorUtilities.VerifyThrow(request.IsConfigurationResolved, "UnresolvedConfigurationInRequest");
BackEnd\Components\Caching\ResultsCacheWithOverride.cs (3)
53ErrorUtilities.VerifyThrow(CurrentCache.GetResultForRequest(request) == null, "caches should not overlap"); 67ErrorUtilities.VerifyThrow(CurrentCache.GetResultsForConfiguration(configurationId) == null, "caches should not overlap"); 90ErrorUtilities.VerifyThrow(
BackEnd\Components\Communications\NodeEndpointInProc.cs (11)
343ErrorUtilities.VerifyThrow(_mode == EndpointMode.Asynchronous, "EndPoint mode is synchronous, should be asynchronous"); 344ErrorUtilities.VerifyThrow(_packetQueue != null, "packetQueue is null"); 345ErrorUtilities.VerifyThrow(_packetAvailable != null, "packetAvailable is null"); 358ErrorUtilities.VerifyThrow(_packetPump == null, "packetPump != null"); 359ErrorUtilities.VerifyThrow(_packetAvailable == null, "packetAvailable != null"); 360ErrorUtilities.VerifyThrow(_terminatePacketPump == null, "terminatePacketPump != null"); 361ErrorUtilities.VerifyThrow(_packetQueue == null, "packetQueue != null"); 395ErrorUtilities.VerifyThrow(_packetPump != null, "packetPump == null"); 396ErrorUtilities.VerifyThrow(_packetAvailable != null, "packetAvailable == null"); 397ErrorUtilities.VerifyThrow(_terminatePacketPump != null, "terminatePacketPump == null"); 398ErrorUtilities.VerifyThrow(_packetQueue != null, "packetQueue == null");
BackEnd\Components\Communications\NodeManager.cs (3)
140ErrorUtilities.VerifyThrow(!_componentShutdown, "We should never be calling ShutdownNodes after ShutdownComponent has been called"); 171ErrorUtilities.VerifyThrow(_componentHost == null, "NodeManager already initialized."); 172ErrorUtilities.VerifyThrow(host != null, "We can't create a NodeManager with a null componentHost");
BackEnd\Components\Communications\NodeProviderInProc.cs (3)
162ErrorUtilities.VerifyThrow(nodeExists, $"InProc node {nodeId} does not exist."); 362ErrorUtilities.VerifyThrow(!_nodeContexts.ContainsKey(nodeId), $"In Proc node {nodeId} already instantiated."); 434ErrorUtilities.VerifyThrow(foundEndpoint, "Received link status event for a node other than our peer.");
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
701ErrorUtilities.VerifyThrow(!_nodeContexts.ContainsKey(nodeKey), "We should not already have a node for this context! Did we forget to call DisconnectFromHost somewhere?");
BackEnd\Components\Communications\TaskHostNodeManager.cs (3)
68ErrorUtilities.VerifyThrow(!_componentShutdown, "We should never be calling ShutdownNodes after ShutdownComponent has been called"); 89ErrorUtilities.VerifyThrow(_componentHost == null, "TaskHostNodeManager already initialized."); 90ErrorUtilities.VerifyThrow(host != null, "We can't create a TaskHostNodeManager with a null componentHost");
BackEnd\Components\Communications\TranslatorExtensions.cs (3)
74ErrorUtilities.VerifyThrow(type != null, "type cannot be null"); 75ErrorUtilities.VerifyThrow( 78ErrorUtilities.VerifyThrow(
BackEnd\Components\Logging\BuildEventArgTransportSink.cs (2)
42ErrorUtilities.VerifyThrow(sendData != null, "sendData delegate is null"); 138ErrorUtilities.VerifyThrow(buildEvent != null, "buildEvent is null");
BackEnd\Components\Logging\CentralForwardingLogger.cs (1)
81ErrorUtilities.VerifyThrow(eventSource != null, "eventSource is null");
BackEnd\Components\Logging\EvaluationLoggingContext.cs (1)
45ErrorUtilities.VerifyThrow(IsValid, "invalid");
BackEnd\Components\Logging\EventRedirectorToSink.cs (3)
38ErrorUtilities.VerifyThrow(eventSink != null, "eventSink is null"); 39ErrorUtilities.VerifyThrow(loggerId >= 0, "loggerId should be greater or equal to 0"); 54ErrorUtilities.VerifyThrow(buildEvent != null, "buildEvent is null");
BackEnd\Components\Logging\LoggingService.cs (16)
894ErrorUtilities.VerifyThrow(_serviceState != LoggingServiceState.Shutdown, " The object is shutdown, should not do any operations on a shutdown component"); 895ErrorUtilities.VerifyThrow(buildComponentHost != null, "BuildComponentHost was null"); 933ErrorUtilities.VerifyThrow(_serviceState != LoggingServiceState.Shutdown, " The object is shutdown, should not do any operations on a shutdown component"); 1003ErrorUtilities.VerifyThrow(packet != null, "packet was null"); 1015ErrorUtilities.VerifyThrow(loggingPacket.EventType != LoggingEventType.CustomEvent, "Custom event types are no longer supported. Does the sending node have a different version?"); 1032ErrorUtilities.VerifyThrow(_serviceState != LoggingServiceState.Shutdown, " The object is shutdown, should not do any operations on a shutdown component"); 1033ErrorUtilities.VerifyThrow(logger != null, "logger was null"); 1121ErrorUtilities.VerifyThrow(_serviceState != LoggingServiceState.Shutdown, " The object is shutdown, should not do any operations on a shutdown component"); 1122ErrorUtilities.VerifyThrow(forwardingLogger != null, "forwardingLogger was null"); 1188ErrorUtilities.VerifyThrow(_serviceState != LoggingServiceState.Shutdown, " The object is shutdown, should not do any operations on a shutdown component"); 1189ErrorUtilities.VerifyThrow(forwardingLoggerSink != null, "forwardingLoggerSink was null"); 1190ErrorUtilities.VerifyThrow(descriptions != null, "loggerDescriptions was null"); 1191ErrorUtilities.VerifyThrow(descriptions.Count > 0, "loggerDescriptions was null"); 1243ErrorUtilities.VerifyThrow(buildEvent != null, "buildEvent is null"); 1305ErrorUtilities.VerifyThrow(buildEvent != null, "buildEvent is null"); 1377ErrorUtilities.VerifyThrow(_configCache.Value.HasConfiguration(projectStartedEventArgs.ProjectId), "Cannot find the project configuration while injecting non-serialized data from out-of-proc node.");
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (24)
41ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(messageResourceName), "Need resource string for comment message."); 113ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(messageResourceName), "Need resource string for error message."); 156ErrorUtilities.VerifyThrow(invalidProjectFileException != null, "Need exception context."); 157ErrorUtilities.VerifyThrow(buildEventContext != null, "buildEventContext is null"); 210ErrorUtilities.VerifyThrow(taskName != null, "Must specify the name of the task that failed."); 227ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(messageResourceName), "Need resource string for error message."); 261ErrorUtilities.VerifyThrow(!String.IsNullOrEmpty(taskName), "Must specify the name of the task that failed."); 286ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(messageResourceName), "Need resource string for warning message."); 303ErrorUtilities.VerifyThrow(file != null, "Must specify the associated file."); 304ErrorUtilities.VerifyThrow(message != null, "Need warning message."); 305ErrorUtilities.VerifyThrow(buildEventContext != null, "Need a BuildEventContext"); 458ErrorUtilities.VerifyThrow(projectEvaluationEventContext != null, "projectBuildEventContext"); 534ErrorUtilities.VerifyThrow(nodeBuildEventContext != null, "Need a nodeBuildEventContext"); 574ErrorUtilities.VerifyThrow(parentBuildEventContext != null, "Need a parentBuildEventContext"); 576ErrorUtilities.VerifyThrow(_configCache.Value.HasConfiguration(configurationId), "Cannot find the project configuration while injecting non-serialized data from out-of-proc node."); 608ErrorUtilities.VerifyThrow(projectBuildEventContext != null, "projectBuildEventContext"); 643ErrorUtilities.VerifyThrow(projectBuildEventContext != null, "projectBuildEventContext is null"); 684ErrorUtilities.VerifyThrow(targetBuildEventContext != null, "targetBuildEventContext is null"); 711ErrorUtilities.VerifyThrow(taskBuildEventContext != null, "targetBuildEventContext is null"); 740ErrorUtilities.VerifyThrow(targetBuildEventContext != null, "targetBuildEventContext is null"); 780ErrorUtilities.VerifyThrow(taskBuildEventContext != null, "taskBuildEventContext is null"); 806ErrorUtilities.VerifyThrow(eventName != null, "eventName is null"); 828ErrorUtilities.VerifyThrow(buildEventContext != null, "buildEventContext was null"); 829ErrorUtilities.VerifyThrow(filePath != null, "response file path was null");
BackEnd\Components\Logging\NodeLoggingContext.cs (4)
27ErrorUtilities.VerifyThrow(nodeId != BuildEventContext.InvalidNodeId, "Should not ever be given an invalid NodeId"); 50ErrorUtilities.VerifyThrow(this.IsValid, "Build not started."); 75ErrorUtilities.VerifyThrow(this.IsValid, "Build not started."); 87ErrorUtilities.VerifyThrow(this.IsValid, "Build not started.");
BackEnd\Components\Logging\ProjectLoggingContext.cs (2)
272ErrorUtilities.VerifyThrow(this.IsValid, "invalid"); 282ErrorUtilities.VerifyThrow(this.IsValid, "invalid");
BackEnd\Components\Logging\TaskLoggingContext.cs (1)
131ErrorUtilities.VerifyThrow(this.IsValid, "invalid");
BackEnd\Components\ProjectCache\CacheContext.cs (1)
43ErrorUtilities.VerifyThrow(
BackEnd\Components\ProjectCache\CacheResult.cs (2)
64ErrorUtilities.VerifyThrow( 99ErrorUtilities.VerifyThrow(resultType != CacheResultType.CacheHit, "CantBeCacheHit");
BackEnd\Components\ProjectCache\Experimental\CacheContext.cs (1)
45ErrorUtilities.VerifyThrow(
BackEnd\Components\ProjectCache\Experimental\CacheResult.cs (2)
66ErrorUtilities.VerifyThrow( 101ErrorUtilities.VerifyThrow(resultType != CacheResultType.CacheHit, "CantBeCacheHit");
BackEnd\Components\ProjectCache\Experimental\ProjectCacheException.cs (5)
31ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(message), "Need error message."); 32ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(errorCode), "Must specify the error message code."); 59ErrorUtilities.VerifyThrow(messageResourceName != null, "Need error message."); 70ErrorUtilities.VerifyThrow(messageResourceName != null, "Need error message."); 81ErrorUtilities.VerifyThrow(messageResourceName != null, "Need error message.");
BackEnd\Components\ProjectCache\ProjectCacheException.cs (5)
30ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(message), "Need error message."); 31ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(errorCode), "Must specify the error message code."); 58ErrorUtilities.VerifyThrow(messageResourceName != null, "Need error message."); 69ErrorUtilities.VerifyThrow(messageResourceName != null, "Need error message."); 80ErrorUtilities.VerifyThrow(messageResourceName != null, "Need error message.");
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
558ErrorUtilities.VerifyThrow(submission.BuildRequestData != null, 780ErrorUtilities.VerifyThrow(projectPathAttribute is not null, "Expected VS to set the project path on each ProjectConfiguration element.");
BackEnd\Components\RequestBuilder\BatchingEngine.cs (2)
311ErrorUtilities.VerifyThrow(itemListsToBeBatched.Count > 0, "Need item types consumed by the batchable object."); 312ErrorUtilities.VerifyThrow(consumedMetadataReferences.Count > 0, "Need item metadata consumed by the batchable object.");
BackEnd\Components\RequestBuilder\ItemBucket.cs (1)
83ErrorUtilities.VerifyThrow(lookup != null, "Need lookup.");
BackEnd\Components\RequestBuilder\Lookup.cs (8)
265ErrorUtilities.VerifyThrow(_lookupScopes.Count >= 2, "Too many calls to Leave()."); 670ErrorUtilities.VerifyThrow(existing == null, "Cannot add an itemgroup of this type."); 697ErrorUtilities.VerifyThrow(_lookupScopes.ItemTypesToTruncateAtThisScope == null, "Cannot add an itemgroup of this type."); 906ErrorUtilities.VerifyThrow(!_cloneTable.ContainsKey(cloneItem), "Should be new, not already in table!"); 1037ErrorUtilities.VerifyThrow(!tableOfItemsOfSameType.Contains(item), "Item should not be in table"); 1052ErrorUtilities.VerifyThrow(!tableOfItemsOfSameType.ContainsKey(item), "Item should not be in table"); 1083ErrorUtilities.VerifyThrow(_lookupScopes.Parent != null, "Operation in outer scope not supported"); 1316ErrorUtilities.VerifyThrow(modificationType != ModificationType.Update, "Modification type may only be update when a value is specified.");
BackEnd\Components\RequestBuilder\RequestBuilder.cs (28)
204ErrorUtilities.VerifyThrow(_componentHost != null, "Host not set."); 205ErrorUtilities.VerifyThrow(_targetBuilder == null, "targetBuilder not null"); 206ErrorUtilities.VerifyThrow(_nodeLoggingContext == null, "nodeLoggingContext not null"); 207ErrorUtilities.VerifyThrow(_requestEntry == null, "requestEntry not null"); 208ErrorUtilities.VerifyThrow(!_terminateEvent.WaitOne(0), "Cancel already called"); 228ErrorUtilities.VerifyThrow(HasActiveBuildRequest, "Request not building"); 229ErrorUtilities.VerifyThrow(!_terminateEvent.WaitOne(0), "Request already terminated"); 230ErrorUtilities.VerifyThrow(!_continueEvent.WaitOne(0), "Request already continued"); 245ErrorUtilities.VerifyThrow(HasActiveBuildRequest, "Request not building"); 246ErrorUtilities.VerifyThrow(!_terminateEvent.WaitOne(0), "Request already terminated"); 247ErrorUtilities.VerifyThrow(!_pendingResourceRequests.IsEmpty, "No pending resource requests"); 342ErrorUtilities.VerifyThrow(_componentHost != null, "No host object set"); 343ErrorUtilities.VerifyThrow(projectFiles.Length == properties.Length, "Properties and project counts not the same"); 344ErrorUtilities.VerifyThrow(projectFiles.Length == toolsVersions.Length, "Tools versions and project counts not the same"); 387ErrorUtilities.VerifyThrow(requests.Length == results.Length, "# results != # requests"); 477ErrorUtilities.VerifyThrow(!_inMSBuildCallback, "Already in an MSBuild callback!"); 487ErrorUtilities.VerifyThrow(_inMSBuildCallback, "Not in an MSBuild callback!"); 496ErrorUtilities.VerifyThrow(Monitor.IsEntered(monitorLockObject), "Not running under the given lock"); 557ErrorUtilities.VerifyThrow(_componentHost == null, "RequestBuilder already initialized."); 642ErrorUtilities.VerifyThrow(_requestTask == null, "Already have a task."); 684ErrorUtilities.VerifyThrow(_componentHost.LegacyThreadingData.MainThreadSubmissionId != _requestEntry.Request.SubmissionId, "Can't start builder thread when we are using legacy threading semantics for this request."); 868ErrorUtilities.VerifyThrow(result == null, "Result already set when exception was thrown."); 1004ErrorUtilities.VerifyThrow(requests.Length == results.Length, "# results != # requests"); 1022ErrorUtilities.VerifyThrow(!isContinue, "Unexpected null results during continue"); 1132ErrorUtilities.VerifyThrow(_targetBuilder != null, "Target builder is null"); 1455ErrorUtilities.VerifyThrow(_requestEntry.RequestConfiguration.SavedCurrentDirectory != null, "Current directory not previously saved."); 1456ErrorUtilities.VerifyThrow(_requestEntry.RequestConfiguration.SavedEnvironmentVariables != null, "Current environment not previously saved."); 1480ErrorUtilities.VerifyThrow(!_isZombie, "RequestBuilder has been zombied.");
BackEnd\Components\RequestBuilder\TargetBuilder.cs (2)
115ErrorUtilities.VerifyThrow(targetNames.Length > 0, "List of targets must be non-empty"); 116ErrorUtilities.VerifyThrow(_componentHost != null, "InitializeComponent must be called before building targets.");
BackEnd\Components\RequestBuilder\TargetEntry.cs (2)
700ErrorUtilities.VerifyThrow(_legacyCallTargetScopes == null, "We should have already left any legacy call target scopes."); 747ErrorUtilities.VerifyThrow(_legacyCallTargetScopes == null, "We should have already left any legacy call target scopes.");
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (16)
58ErrorUtilities.VerifyThrow(project != null, "Need a project."); 59ErrorUtilities.VerifyThrow(targetToAnalyze != null, "Need a target to analyze."); 93ErrorUtilities.VerifyThrow(_targetInputSpecification != null, "targetInputSpecification is null"); 106ErrorUtilities.VerifyThrow(_targetOutputSpecification != null, "targetOutputSpecification is null"); 205ErrorUtilities.VerifyThrow(itemVectorsReferencedInBothTargetInputsAndOutputs.Count > 0, "The target must have inputs."); 206ErrorUtilities.VerifyThrow(!IsItemVectorEmpty(itemVectorsInTargetInputs), "The target must have inputs."); 610ErrorUtilities.VerifyThrow(inputItemVectors.Count == 1, 714ErrorUtilities.VerifyThrow(numberOfInputItemVectorsWithAllChangedItems <= itemVectorsReferencedInBothTargetInputsAndOutputs.Count, 720ErrorUtilities.VerifyThrow(result == DependencyAnalysisResult.IncrementalBuild, 852ErrorUtilities.VerifyThrow((itemVectorTransforms == null) || (itemVectorCollection.Equals(itemVectorTransforms)) || (itemVectorPartition.Count == 1), 963ErrorUtilities.VerifyThrow((inputs.Count > 0) && (outputs.Count > 0), "Need to specify inputs and outputs."); 966ErrorUtilities.VerifyThrow(inputs[0] is string || inputs[0] is ProjectItemInstance, "Must be either string or ProjectItemInstance"); 971ErrorUtilities.VerifyThrow(outputs[0] is string || outputs[0] is ProjectItemInstance, "Must be either string or ProjectItemInstance"); 1086ErrorUtilities.VerifyThrow(inputs[0] is string || inputs[0] is ProjectItemInstance, "Must be either string or ProjectItemInstance"); 1091ErrorUtilities.VerifyThrow(outputs[0] is string || outputs[0] is ProjectItemInstance, "Must be either string or ProjectItemInstance"); 1199ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(path1) && !string.IsNullOrEmpty(path2),
BackEnd\Components\RequestBuilder\TaskBuilder.cs (5)
155ErrorUtilities.VerifyThrow(taskInstance != null, "Need to specify the task instance."); 226ErrorUtilities.VerifyThrow(_taskExecutionHost != null, "taskExecutionHost not initialized."); 527ErrorUtilities.VerifyThrow(howToExecuteTask == TaskExecutionMode.InferOutputsOnly, "should be inferring"); 529ErrorUtilities.VerifyThrow( 1175ErrorUtilities.VerifyThrow(howToExecuteTask == TaskExecutionMode.InferOutputsOnly, "should be inferring");
BackEnd\Components\RequestBuilder\TaskHost.cs (3)
361ErrorUtilities.VerifyThrow(_yieldThreadId == -1, "Cannot call Yield() while yielding."); 390ErrorUtilities.VerifyThrow(_yieldThreadId != -1, "Cannot call Reacquire() before Yield()."); 1278ErrorUtilities.VerifyThrow(_activeProxy, "Attempted to use an inactive task host.");
BackEnd\Components\Scheduler\SchedulableRequest.cs (14)
131ErrorUtilities.VerifyThrow((parent == null) || (parent._schedulingData == collection), "Parent request does not belong to the same collection."); 256ErrorUtilities.VerifyThrow(_creationTime == DateTime.MinValue, "Cannot set CreationTime twice."); 273ErrorUtilities.VerifyThrow(_startTime == DateTime.MinValue, "Cannot set StartTime twice."); 290ErrorUtilities.VerifyThrow(_endTime == DateTime.MinValue, "Cannot set EndTime twice."); 340ErrorUtilities.VerifyThrow(BlockingTarget == null, "Cannot block again if we're already blocked on a target"); 345ErrorUtilities.VerifyThrow(!_requestsWeAreBlockedBy.ContainsKey(key), "We are already blocked by this request."); 346ErrorUtilities.VerifyThrow(!blockingRequest._requestsWeAreBlocking.Contains(this), "The blocking request thinks it is already blocking us."); 401ErrorUtilities.VerifyThrow(_assignedNodeId == Scheduler.InvalidNodeId || _assignedNodeId == nodeId, "Request must always resume on the same node on which it was started."); 420ErrorUtilities.VerifyThrow(_state != SchedulableRequestState.Ready || result.CircularDependency, "Request can only be Completed from the Ready state if the result indicates a circular dependency occurred."); 421ErrorUtilities.VerifyThrow(_requestsWeAreBlockedBy.Count == 0, "We can't be complete if we are still blocked on requests."); 439ErrorUtilities.VerifyThrow(_requestsWeAreBlockedBy.Count == 0, "We are blocked by requests."); 440ErrorUtilities.VerifyThrow(_requestsWeAreBlocking.Count == 0, "We are blocking by requests."); 641ErrorUtilities.VerifyThrow(_requestsWeAreBlockedBy.TryGetValue(blockingRequestKey, out SchedulableRequest unblockingRequest), "We are not blocked by the specified request."); 642ErrorUtilities.VerifyThrow(unblockingRequest._requestsWeAreBlocking.Contains(this), "The request unblocking us doesn't think it is blocking us.");
BackEnd\Components\Scheduler\Scheduler.cs (15)
359ErrorUtilities.VerifyThrow(string.IsNullOrEmpty(blocker.BlockingTarget), "Blocking target should be null because this is not a request blocking on a target"); 364ErrorUtilities.VerifyThrow(string.IsNullOrEmpty(blocker.BlockingTarget), "Blocking target should be null because this is not a request blocking on a target"); 373ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(blocker.BlockingTarget), "Blocking target should exist"); 385ErrorUtilities.VerifyThrow(string.IsNullOrEmpty(blocker.BlockingTarget), "Blocking target should be null because this is not a request blocking on a target"); 431ErrorUtilities.VerifyThrow(result.ParentGlobalRequestId == request.Parent.BuildRequest.GlobalRequestId, "Result's parent doesn't match request's parent."); 825ErrorUtilities.VerifyThrow(responses.Count > 0, "We failed to request a node to be created."); 1411ErrorUtilities.VerifyThrow(nodeId != InvalidNodeId, "Invalid node id specified."); 1426ErrorUtilities.VerifyThrow(config.ResultsNodeId != InvalidNodeId, "Configuration's results node is not set."); 1439ErrorUtilities.VerifyThrow( 1617ErrorUtilities.VerifyThrow(inProcNodesToCreate == 1, "We should not be trying to create more than one inproc node"); 1911ErrorUtilities.VerifyThrow(request.Parent == null, "Unexpectedly generated a SubmissionComplete response for a request which is not top-level."); 2110ErrorUtilities.VerifyThrow( 2185ErrorUtilities.VerifyThrow(parentRequestNode != InvalidNodeId, "Invalid parent node provided."); 2188ErrorUtilities.VerifyThrow(result.ParentGlobalRequestId == requestWhichGeneratedResult.ParentGlobalRequestId, "Result's parent doesn't match request's parent."); 2247ErrorUtilities.VerifyThrow(request.ConfigurationId != BuildRequestConfiguration.InvalidConfigurationId, "Requests should have a valid configuration id at this point");
BackEnd\Components\Scheduler\ScheduleTimeRecord.cs (1)
58ErrorUtilities.VerifyThrow(_startTimeForCurrentState == DateTime.MinValue, "Cannot start the counter when it is already running.");
BackEnd\Components\Scheduler\SchedulingData.cs (4)
357ErrorUtilities.VerifyThrow(!_blockedRequests.ContainsKey(request.BuildRequest.GlobalRequestId), "Request with global id {0} is already blocked!"); 362ErrorUtilities.VerifyThrow(!_yieldingRequests.ContainsKey(request.BuildRequest.GlobalRequestId), "Request with global id {0} is already yielded!"); 379ErrorUtilities.VerifyThrow(!_executingRequests.ContainsKey(request.BuildRequest.GlobalRequestId), "Request with global id {0} is already executing!"); 393ErrorUtilities.VerifyThrow(!_readyRequests.ContainsKey(request.BuildRequest.GlobalRequestId), "Request with global id {0} is already ready!");
BackEnd\Shared\BuildRequest.cs (4)
266ErrorUtilities.VerifyThrow(_globalRequestId == InvalidGlobalRequestId, "Global Request ID cannot be set twice."); 349ErrorUtilities.VerifyThrow(_buildEventContext == BuildEventContext.Invalid, "The build event context is already set."); 412ErrorUtilities.VerifyThrow(!IsConfigurationResolved, "Configuration already resolved"); 414ErrorUtilities.VerifyThrow(IsConfigurationResolved, "Configuration not resolved");
BackEnd\Shared\BuildRequestConfiguration.cs (15)
241ErrorUtilities.VerifyThrow(configId != InvalidConfigurationId, "Configuration ID must not be invalid when using this constructor."); 243ErrorUtilities.VerifyThrow(other._transferredState == null, "Unexpected transferred state still set on other configuration."); 403ErrorUtilities.VerifyThrow(!IsCached, "We shouldn't be accessing the ProjectInstance when the configuration is cached."); 415ErrorUtilities.VerifyThrow(_transferredProperties == null, "Shouldn't be transferring entire state of ProjectInstance when transferredProperties is not null."); 435ErrorUtilities.VerifyThrow(project != null, "Cannot set null project."); 542ErrorUtilities.VerifyThrow(IsLoaded, $"This {nameof(BuildRequestConfiguration)} must be loaded at the end of this method"); 569ErrorUtilities.VerifyThrow(_projectInitialTargets == null, "Initial targets cannot be reset once they have been set."); 585ErrorUtilities.VerifyThrow(_projectDefaultTargets == null, "Default targets cannot be reset once they have been set."); 600ErrorUtilities.VerifyThrow( 619ErrorUtilities.VerifyThrow(!IsCached, "Configuration is cached, we shouldn't be accessing the lookup."); 796ErrorUtilities.VerifyThrow(request.ConfigurationId == ConfigurationId, "Request does not match configuration."); 797ErrorUtilities.VerifyThrow(_projectInitialTargets != null, "Initial targets have not been set."); 798ErrorUtilities.VerifyThrow(_projectDefaultTargets != null, "Default targets have not been set."); 802ErrorUtilities.VerifyThrow( 842ErrorUtilities.VerifyThrow(Path.IsPathRooted(referenceFullPath), "Method does not treat path normalization cases");
BackEnd\Shared\BuildResult.cs (2)
567ErrorUtilities.VerifyThrow( 587ErrorUtilities.VerifyThrow(results.ConfigurationId == ConfigurationId, "Result configurations don't match");
BackEnd\Shared\TargetResult.cs (1)
387ErrorUtilities.VerifyThrow(buffer != null, "Unexpected null items buffer during translation.");
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (5)
487ErrorUtilities.VerifyThrow(_taskFactoryWrapper != null, "Need a taskFactoryWrapper to retrieve outputs from."); 625ErrorUtilities.VerifyThrow(TaskInstance == null, "Task Instance should be null"); 1365ErrorUtilities.VerifyThrow(parameterValue != null, "Didn't expect null parameterValue in InitializeTaskVectorParameter"); 1736ErrorUtilities.VerifyThrow(_taskFactoryWrapper != null, "Expected taskFactoryWrapper to not be null"); 1814ErrorUtilities.VerifyThrow(
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
42ErrorUtilities.VerifyThrow(host != null, "BuildComponentHost was null");
BuildEventFileInfo.cs (1)
87ErrorUtilities.VerifyThrow(e != null, "Need exception context.");
Collections\ConcurrentQueueExtensions.cs (1)
22ErrorUtilities.VerifyThrow(stack.TryDequeue(out T result), "Unable to dequeue from queue");
Collections\ConcurrentStackExtensions.cs (2)
22ErrorUtilities.VerifyThrow(stack.TryPeek(out T result), "Unable to peek from stack"); 32ErrorUtilities.VerifyThrow(stack.TryPop(out T result), "Unable to pop from stack");
Collections\CopyOnWritePropertyDictionary.cs (3)
107ErrorUtilities.VerifyThrow(String.Equals(name, value.Key, StringComparison.OrdinalIgnoreCase), "Key must match value's key"); 258ErrorUtilities.VerifyThrow(key == value.Key, "Key must match value's key"); 310ErrorUtilities.VerifyThrow(item.Key == item.Value.Key, "Key must match value's key");
Collections\ItemDictionary.cs (1)
339ErrorUtilities.VerifyThrow(String.Equals(itemType, list[i].Key, StringComparison.OrdinalIgnoreCase), "Item type mismatch");
Collections\MultiDictionary.cs (2)
120ErrorUtilities.VerifyThrow(value != null, "Null value not allowed"); 140ErrorUtilities.VerifyThrow(value != null, "Null value not allowed");
Collections\PropertyDictionary.cs (3)
210ErrorUtilities.VerifyThrow(String.Equals(name, value.Key, StringComparison.OrdinalIgnoreCase), "Key must match value's key"); 371ErrorUtilities.VerifyThrow(key == value.Key, "Key must match value's key"); 455ErrorUtilities.VerifyThrow(item.Key == item.Value.Key, "Key must match value's key");
Collections\ReadOnlyConvertingDictionary.cs (1)
158ErrorUtilities.VerifyThrow(array.Length - arrayIndex >= _backing.Count, "Specified array size insufficient to hold the contents of the collection.");
Construction\ProjectChooseElement.cs (1)
95ErrorUtilities.VerifyThrow(containingProject.Link == null, "Attempt to edit a document that is not backed by a local xml is disallowed.");
Construction\ProjectElement.cs (2)
167ErrorUtilities.VerifyThrow(Link == null, "Attempt to edit a document that is not backed by a local xml is disallowed."); 264ErrorUtilities.VerifyThrow(Link == null, "Attempt to edit a document that is not backed by a local xml is disallowed.");
Construction\ProjectElementContainer.cs (15)
176ErrorUtilities.VerifyThrow(child.NextSibling.PreviousSibling == reference, "Invalid structure"); 232ErrorUtilities.VerifyThrow(child.PreviousSibling.NextSibling == reference, "Invalid structure"); 256ErrorUtilities.VerifyThrow(FirstChild != null, "Invalid structure"); 275ErrorUtilities.VerifyThrow(LastChild != null, "Invalid structure"); 389ErrorUtilities.VerifyThrow(child.Parent == this, "Expected parent already set"); 390ErrorUtilities.VerifyThrow(child.PreviousSibling == null && child.NextSibling == null, "Invalid structure"); 391ErrorUtilities.VerifyThrow(Link == null, "Attempt to edit a document that is not backed by a local xml is disallowed."); 441ErrorUtilities.VerifyThrow(Link == null, "Attempt to edit a document that is not backed by a local xml is disallowed."); 458ErrorUtilities.VerifyThrow(Link == null, "Attempt to edit a document that is not backed by a local xml is disallowed."); 474ErrorUtilities.VerifyThrow(Link == null, "Attempt to edit a document that is not backed by a local xml is disallowed."); 494ErrorUtilities.VerifyThrow(Link == null, "Attempt to edit a document that is not backed by a local xml is disallowed."); 609ErrorUtilities.VerifyThrow(Link == null, "Attempt to edit a document that is not backed by a local xml is disallowed."); 651ErrorUtilities.VerifyThrow(FirstChild == null && LastChild == null, "Expecting no children"); 692ErrorUtilities.VerifyThrow(child.NextSibling == null || child.NextSibling.PreviousSibling != this, "Invalid structure"); 693ErrorUtilities.VerifyThrow(child.PreviousSibling == null || child.PreviousSibling.NextSibling != this, "Invalid structure");
Construction\ProjectRootElement.cs (3)
1785ErrorUtilities.VerifyThrow(document.FullPath == null, "Only virtual documents supported"); 1824ErrorUtilities.VerifyThrow(Link == null, "Attempt to edit a document that is not backed by a local xml is disallowed."); 1886ErrorUtilities.VerifyThrow(Link == null, "Attempt to edit a document that is not backed by a local xml is disallowed.");
Construction\ProjectTaskElement.cs (1)
215ErrorUtilities.VerifyThrow(Link == null, "Attempt to edit a document that is not backed by a local xml is disallowed.");
Construction\ProjectUsingTaskBodyElement.cs (1)
166ErrorUtilities.VerifyThrow(parentUsingTask.Link == null, "TaskFactory");
Construction\Solution\ProjectInSolution.cs (1)
510ErrorUtilities.VerifyThrow(projectName != null, "Null strings not allowed.");
Construction\Solution\SolutionFile.cs (9)
351ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(_solutionFile), "ReadSolutionModel() got a null or empty solution file."); 538ErrorUtilities.VerifyThrow(!String.IsNullOrEmpty(solutionFile), "null solution file passed to GetSolutionFileMajorVersion!"); 709ErrorUtilities.VerifyThrow(SolutionReader != null, "ParseFileHeader(): reader is null!"); 735ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(_solutionFile), "ParseSolutionFile() got a null solution file!"); 939ErrorUtilities.VerifyThrow(SolutionReader != null, "ParseFileHeader(): reader is null!"); 1004ErrorUtilities.VerifyThrow(versionString != null, "ValidateSolutionFileVersion() got a null line!"); 1048ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(firstLine), "ParseProject() got a null firstLine!"); 1049ErrorUtilities.VerifyThrow(SolutionReader != null, "ParseProject() got a null reader!"); 1302ErrorUtilities.VerifyThrow(proj.RelativePath != null, "Project relative path cannot be null.");
Construction\UsingTaskParameterGroupElement.cs (1)
135ErrorUtilities.VerifyThrow(parentUsingTask.Link == null, "TaskFactory");
Definition\Project.cs (6)
1803ErrorUtilities.VerifyThrow(!implementationInternal.IsZombified, "OM_ProjectIsNoLongerActive"); 3577ErrorUtilities.VerifyThrow(_data.Expander.Metadata == null, "Should be null"); 3756ErrorUtilities.VerifyThrow(LastEvaluationId != BuildEventContext.InvalidEvaluationId, "Evaluation should produce an evaluation ID"); 3777ErrorUtilities.VerifyThrow(!IsDirty, "Should not be dirty now"); 3824ErrorUtilities.VerifyThrow(LastEvaluationId == BuildEventContext.InvalidEvaluationId, "This is the first evaluation therefore the last evaluation id is invalid"); 3828ErrorUtilities.VerifyThrow(LastEvaluationId != BuildEventContext.InvalidEvaluationId, "Last evaluation ID must be valid after the first evaluation");
Definition\ProjectCollection.cs (1)
547ErrorUtilities.VerifyThrow(_defaultToolsVersion != null, "Should have a default");
Definition\ToolsetReader.cs (1)
303ErrorUtilities.VerifyThrow(
ElementLocation\ElementLocation.cs (4)
143ErrorUtilities.VerifyThrow(translator.Mode == TranslationDirection.WriteToStream, "write only"); 255ErrorUtilities.VerifyThrow(line > -1 && column > -1, "Use zero for unknown"); 330ErrorUtilities.VerifyThrow(line > -1 && column > -1, "Use zero for unknown"); 331ErrorUtilities.VerifyThrow(line <= 65535 && column <= 65535, "Use ElementLocation instead");
ElementLocation\XmlDocumentWithLocation.cs (1)
359ErrorUtilities.VerifyThrow(Path.IsPathRooted(fullPath), "should be full path");
Errors\InternalLoggerException.cs (5)
92ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(message), "Need error message."); 93ErrorUtilities.VerifyThrow(innerException != null || initializationException, "Need the logger exception."); 94ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(errorCode), "Must specify the error message code."); 95ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(helpKeyword), "Must specify the help keyword for the IDE."); 247ErrorUtilities.VerifyThrow(messageResourceName != null, "Need error message.");
Evaluation\Conditionals\NumericExpressionNode.cs (1)
20ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(value), "NumericExpressionNode cannot have empty value");
Evaluation\Conditionals\Parser.cs (1)
102ErrorUtilities.VerifyThrow(0 != (optionSettings & ParserOptions.AllowProperties),
Evaluation\Conditionals\Scanner.cs (1)
63ErrorUtilities.VerifyThrow(0 != (options & ParserOptions.AllowProperties),
Evaluation\Conditionals\Token.cs (1)
93ErrorUtilities.VerifyThrow(
Evaluation\Evaluator.cs (3)
632ErrorUtilities.VerifyThrow(_data.EvaluationId == BuildEventContext.InvalidEvaluationId, "There is no prior evaluation ID. The evaluator data needs to be reset at this point"); 660ErrorUtilities.VerifyThrow(_data.EvaluationId != BuildEventContext.InvalidEvaluationId, "Evaluation should produce an evaluation ID"); 834ErrorUtilities.VerifyThrow(_evaluationProfiler.IsEmpty(), "Evaluation profiler stack is not empty.");
Evaluation\Expander.cs (10)
534ErrorUtilities.VerifyThrow((options & ExpanderOptions.BreakOnNotEmpty) == 0, "not supported"); 983ErrorUtilities.VerifyThrow(metadata != null, "Cannot expand metadata without providing metadata"); 1153ErrorUtilities.VerifyThrow(options != ExpanderOptions.Invalid, "Must be expanding metadata of some kind"); 1161ErrorUtilities.VerifyThrow(itemMetadataMatch.Success, "Need a valid item metadata."); 1285ErrorUtilities.VerifyThrow(properties != null, "Cannot expand properties without providing properties"); 2122ErrorUtilities.VerifyThrow(!matchesEnumerator.MoveNext(), "Expected just one item vector"); 2133ErrorUtilities.VerifyThrow(items != null, "Cannot expand items without providing items"); 2251ErrorUtilities.VerifyThrow(evaluatedItems != null, "Cannot expand items without providing items"); 2334ErrorUtilities.VerifyThrow(items != null, "Cannot expand items without providing items"); 4309ErrorUtilities.VerifyThrow(cachedTypeInformation.Item1 != null || cachedTypeInformation.Item2 != null, "Function type information needs either string or type represented.");
Evaluation\Expander\WellKnownFunctions.cs (1)
955ErrorUtilities.VerifyThrow(loggingContext != null, $"The logging context is missed. {nameof(IntrinsicFunctions.RegisterBuildCheck)} can not be invoked.");
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (1)
126ErrorUtilities.VerifyThrow(
Evaluation\ProjectRootElementCache.cs (3)
106ErrorUtilities.VerifyThrow( 255ErrorUtilities.VerifyThrow( 542ErrorUtilities.VerifyThrow(_weakCache[oldFullPathIfAny] == projectRootElement, "Should already be present");
Evaluation\SimpleProjectRootElementCache.cs (1)
74ErrorUtilities.VerifyThrow(_cache.TryGetValue(key, out _),
Graph\GraphBuilder.cs (5)
231ErrorUtilities.VerifyThrow(projectsByPath.TryGetValue(referencingProjectPath, out var referencingNodes), "nodes should include solution projects"); 236ErrorUtilities.VerifyThrow(projectsByPath.TryGetValue(referencedProjectPath, out List<ProjectGraphNode> projectToReturn), "nodes should include solution projects"); 463ErrorUtilities.VerifyThrow( 703ErrorUtilities.VerifyThrow(ReferenceItems.TryGetValue(key, out ProjectItemInstance referenceItem), "All requested keys should exist"); 748ErrorUtilities.VerifyThrow(ReferenceItems.TryRemove(key, out _), "All requested keys should exist");
Graph\GraphBuildSubmission.cs (2)
57ErrorUtilities.VerifyThrow(BuildResult != null, 65ErrorUtilities.VerifyThrow(result.SubmissionId == SubmissionId,
Graph\ProjectGraph.cs (1)
587ErrorUtilities.VerifyThrow(toposort.Count == graphNodes.Count, "sorted node count must be equal to total node count");
Graph\ProjectGraphNode.cs (1)
77ErrorUtilities.VerifyThrow(reference._referencingProjects.Contains(this), "references should point to the nodes referencing them");
Graph\ProjectInterpretation.cs (5)
64ErrorUtilities.VerifyThrow( 231ErrorUtilities.VerifyThrow(!(isOuterBuild && isInnerBuild), $"A project cannot be an outer and inner build at the same time: ${project.FullPath}"); 266ErrorUtilities.VerifyThrow( 288ErrorUtilities.VerifyThrow(!String.IsNullOrWhiteSpace(globalPropertyName), "Must have an inner build property"); 289ErrorUtilities.VerifyThrow(!String.IsNullOrWhiteSpace(globalPropertyValues), "Must have values for the inner build property");
Instance\ProjectInstance.cs (6)
741ErrorUtilities.VerifyThrow(filter == null || isImmutable, 2456ErrorUtilities.VerifyThrow(ProjectRootElementCache == null, $"{nameof(ProjectRootElementCache)} is already set. Cannot set again"); 2457ErrorUtilities.VerifyThrow(_hostServices == null, $"{nameof(HostServices)} is already set. Cannot set again"); 2458ErrorUtilities.VerifyThrow(TaskRegistry != null, $"{nameof(TaskRegistry)} Cannot be null after {nameof(ProjectInstance)} object creation."); 3287ErrorUtilities.VerifyThrow(EvaluationId == BuildEventContext.InvalidEvaluationId, "Evaluation ID is invalid prior to evaluation"); 3310ErrorUtilities.VerifyThrow(EvaluationId != BuildEventContext.InvalidEvaluationId, "Evaluation should produce an evaluation ID");
Instance\ProjectMetadataInstance.cs (1)
179ErrorUtilities.VerifyThrow(translator.Mode == TranslationDirection.WriteToStream, "write only");
Instance\ProjectPropertyInstance.cs (2)
174ErrorUtilities.VerifyThrow(translator.Mode == TranslationDirection.WriteToStream, "write only"); 273ErrorUtilities.VerifyThrow(translator.Mode == TranslationDirection.ReadFromStream, "read only");
Instance\TaskFactoryEngineContext.cs (1)
404ErrorUtilities.VerifyThrow(_activeProxy, "Attempted to use an inactive task factory logging host.");
Instance\TaskRegistry.cs (2)
1170ErrorUtilities.VerifyThrow( 1414ErrorUtilities.VerifyThrow(taskFactoryLoadInfo != null, "TaskFactoryLoadInfo should never be null");
Logging\ParallelLogger\ParallelConsoleLogger.cs (3)
883ErrorUtilities.VerifyThrow(startedEvent != null, "Started event should not be null in the finished event handler"); 1432ErrorUtilities.VerifyThrow(startedEvent != null, "Project Started should not be null in deferred target started"); 1727ErrorUtilities.VerifyThrow(_startedEvent != null, "Cannot have finished counter without started counter. ");
Logging\ReusableLogger.cs (2)
341ErrorUtilities.VerifyThrow(_buildTimeEventSource == null, "Already registered for build-time."); 371ErrorUtilities.VerifyThrow(_designTimeEventSource != null, "Already unregistered for design-time.");
LogMessagePacketBase.cs (3)
294ErrorUtilities.VerifyThrow(nodeBuildEvent != null, "nodeBuildEvent was null"); 381ErrorUtilities.VerifyThrow(_eventType != LoggingEventType.CustomEvent, "_eventType should not be a custom event"); 422ErrorUtilities.VerifyThrow(_eventType != LoggingEventType.CustomEvent, "_eventType should not be a custom event");
NodeEndpointOutOfProcBase.cs (3)
315ErrorUtilities.VerifyThrow(_packetPump.ManagedThreadId != Thread.CurrentThread.ManagedThreadId, "Can't join on the same thread."); 333ErrorUtilities.VerifyThrow(_packetQueue != null, "packetQueue is null"); 334ErrorUtilities.VerifyThrow(_packetAvailable != null, "packetAvailable is null");
OutOfProcTaskHostTaskResult.cs (2)
70ErrorUtilities.VerifyThrow( 79ErrorUtilities.VerifyThrow(exceptionMessage != null, "If we have message args, we need a message.");
ProjectFileErrorUtilities.cs (1)
138ErrorUtilities.VerifyThrow(projectFile != null, "Must specify the invalid project file. If project file is not available, use VerifyThrowInvalidProject() and pass in the XML node instead.");
Resources\AssemblyResources.cs (1)
32ErrorUtilities.VerifyThrow(s_msbuildExeResourceManager == null, "Only one extra resource manager");
TaskLoggingHelper.cs (3)
330ErrorUtilities.VerifyThrow(errorCode == null, "This message contains an error code (" + errorCode + "), yet it was logged as a regular message: " + message); 795ErrorUtilities.VerifyThrow(string.IsNullOrEmpty(messageCode), "Called LogErrorFromResources instead of LogErrorWithCodeFromResources, but message '" + throwAwayMessageBody + "' does have an error code '" + messageCode + "'"); 1134ErrorUtilities.VerifyThrow(string.IsNullOrEmpty(messageCode), "Called LogWarningFromResources instead of LogWarningWithCodeFromResources, but message '" + throwAwayMessageBody + "' does have an error code '" + messageCode + "'");
TelemetryInfra\TelemetryCollectorProvider.cs (1)
37ErrorUtilities.VerifyThrow(host != null, "BuildComponentHost was null");
TypeLoader.cs (1)
119ErrorUtilities.VerifyThrow(isDesiredType != null, "need a type filter");
Utilities\EngineFileUtilities.cs (1)
365ErrorUtilities.VerifyThrow(fileList != null, "We must have a list of files here, even if it's empty.");
Utilities\ProjectWriter.cs (2)
142ErrorUtilities.VerifyThrow(itemVectorTransforms.Count == (surroundingTextPieces.Length - 1), 154ErrorUtilities.VerifyThrow(itemVectorTransform.Success,
Utilities\Utilities.cs (2)
85ErrorUtilities.VerifyThrow(s != null, "Need value to set."); 466ErrorUtilities.VerifyThrow(!String.IsNullOrEmpty(toolsVersionToUse), "Should always return a ToolsVersion");
Microsoft.Build.Engine.UnitTests (3)
ErrorUtilities_Tests.cs (3)
19ErrorUtilities.VerifyThrow(false, "msbuild rules"); 34ErrorUtilities.VerifyThrow(true, "msbuild rules"); 41ErrorUtilities.VerifyThrow(true, "blah");