BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (10)
190ErrorUtilities.VerifyThrow(_componentHost != null, "BuildRequestEngine not initialized by component host.");
218ErrorUtilities.VerifyThrow(_nodeLoggingContext != null, "Node logging context not set.");
504ErrorUtilities.VerifyThrow(_componentHost != null, "No host object set");
594ErrorUtilities.VerifyThrow(_componentHost == null, "BuildRequestEngine already initialized!");
734ErrorUtilities.VerifyThrow(activeEntry == null, "Multiple active requests");
915ErrorUtilities.VerifyThrow(_componentHost != null, "No host object set");
1115ErrorUtilities.VerifyThrow(_componentHost != null, "No host object set");
1279ErrorUtilities.VerifyThrow((requestsToIssue == null) || (requestsToIssue.Count == 0), "Entry shouldn't be ready if we also issued requests.");
1332ErrorUtilities.VerifyThrow(config.WasGeneratedByNode, "InvalidConfigurationId");
1334ErrorUtilities.VerifyThrow(_unresolvedConfigurations.HasConfiguration(config.ConfigurationId), "NoUnresolvedConfiguration");
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (12)
127ErrorUtilities.VerifyThrow(requestConfiguration.ConfigurationId == request.ConfigurationId, "Configuration id mismatch");
184ErrorUtilities.VerifyThrow(value == null || _requestBuilder == null, "Request Builder already set.");
195ErrorUtilities.VerifyThrow(configuration.WasGeneratedByNode, "Configuration has already been resolved.");
334ErrorUtilities.VerifyThrow(result.CircularDependency, "Received result for target in progress and it wasn't a circular dependency error.");
366ErrorUtilities.VerifyThrow(!_outstandingResults.ContainsKey(result.NodeRequestId), "Request already contains results.");
403ErrorUtilities.VerifyThrow(_unresolvedConfigurations == null, "All configurations must be resolved before Continue may be called.");
404ErrorUtilities.VerifyThrow(_outstandingRequests == null, "All outstanding requests must have been satisfied.");
475ErrorUtilities.VerifyThrow(Result == null, "Entry already Completed.");
483ErrorUtilities.VerifyThrow(_unresolvedConfigurations == null, "Entry must not have any unresolved configurations.");
484ErrorUtilities.VerifyThrow(_outstandingRequests == null, "Entry must have no outstanding requests.");
485ErrorUtilities.VerifyThrow(_outstandingResults == null, "Results must be consumed before request may be completed.");
511ErrorUtilities.VerifyThrow(addToIssueList, "Requests with unresolved configurations should always be added to the issue list.");
BackEnd\Components\Communications\NodeEndpointInProc.cs (11)
335ErrorUtilities.VerifyThrow(_mode == EndpointMode.Asynchronous, "EndPoint mode is synchronous, should be asynchronous");
336ErrorUtilities.VerifyThrow(_packetQueue != null, "packetQueue is null");
337ErrorUtilities.VerifyThrow(_packetAvailable != null, "packetAvailable is null");
350ErrorUtilities.VerifyThrow(_packetPump == null, "packetPump != null");
351ErrorUtilities.VerifyThrow(_packetAvailable == null, "packetAvailable != null");
352ErrorUtilities.VerifyThrow(_terminatePacketPump == null, "terminatePacketPump != null");
353ErrorUtilities.VerifyThrow(_packetQueue == null, "packetQueue != null");
387ErrorUtilities.VerifyThrow(_packetPump != null, "packetPump == null");
388ErrorUtilities.VerifyThrow(_packetAvailable != null, "packetAvailable == null");
389ErrorUtilities.VerifyThrow(_terminatePacketPump != null, "terminatePacketPump == null");
390ErrorUtilities.VerifyThrow(_packetQueue != null, "packetQueue == null");
BackEnd\Components\Logging\LoggingService.cs (15)
856ErrorUtilities.VerifyThrow(_serviceState != LoggingServiceState.Shutdown, " The object is shutdown, should not do any operations on a shutdown component");
857ErrorUtilities.VerifyThrow(buildComponentHost != null, "BuildComponentHost was null");
892ErrorUtilities.VerifyThrow(_serviceState != LoggingServiceState.Shutdown, " The object is shutdown, should not do any operations on a shutdown component");
962ErrorUtilities.VerifyThrow(packet != null, "packet was null");
1038ErrorUtilities.VerifyThrow(_serviceState != LoggingServiceState.Shutdown, " The object is shutdown, should not do any operations on a shutdown component");
1039ErrorUtilities.VerifyThrow(logger != null, "logger was null");
1127ErrorUtilities.VerifyThrow(_serviceState != LoggingServiceState.Shutdown, " The object is shutdown, should not do any operations on a shutdown component");
1128ErrorUtilities.VerifyThrow(forwardingLogger != null, "forwardingLogger was null");
1192ErrorUtilities.VerifyThrow(_serviceState != LoggingServiceState.Shutdown, " The object is shutdown, should not do any operations on a shutdown component");
1193ErrorUtilities.VerifyThrow(forwardingLoggerSink != null, "forwardingLoggerSink was null");
1194ErrorUtilities.VerifyThrow(descriptions != null, "loggerDescriptions was null");
1195ErrorUtilities.VerifyThrow(descriptions.Count > 0, "loggerDescriptions was null");
1247ErrorUtilities.VerifyThrow(buildEvent != null, "buildEvent is null");
1298ErrorUtilities.VerifyThrow(buildEvent != null, "buildEvent is null");
1348ErrorUtilities.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");
638ErrorUtilities.VerifyThrow(projectBuildEventContext != null, "projectBuildEventContext is null");
679ErrorUtilities.VerifyThrow(targetBuildEventContext != null, "targetBuildEventContext is null");
706ErrorUtilities.VerifyThrow(taskBuildEventContext != null, "targetBuildEventContext is null");
735ErrorUtilities.VerifyThrow(targetBuildEventContext != null, "targetBuildEventContext is null");
775ErrorUtilities.VerifyThrow(taskBuildEventContext != null, "taskBuildEventContext is null");
801ErrorUtilities.VerifyThrow(eventName != null, "eventName is null");
823ErrorUtilities.VerifyThrow(buildEventContext != null, "buildEventContext was null");
824ErrorUtilities.VerifyThrow(filePath != null, "response file path was null");
BackEnd\Components\RequestBuilder\RequestBuilder.cs (28)
201ErrorUtilities.VerifyThrow(_componentHost != null, "Host not set.");
202ErrorUtilities.VerifyThrow(_targetBuilder == null, "targetBuilder not null");
203ErrorUtilities.VerifyThrow(_nodeLoggingContext == null, "nodeLoggingContext not null");
204ErrorUtilities.VerifyThrow(_requestEntry == null, "requestEntry not null");
205ErrorUtilities.VerifyThrow(!_terminateEvent.WaitOne(0), "Cancel already called");
225ErrorUtilities.VerifyThrow(HasActiveBuildRequest, "Request not building");
226ErrorUtilities.VerifyThrow(!_terminateEvent.WaitOne(0), "Request already terminated");
227ErrorUtilities.VerifyThrow(!_continueEvent.WaitOne(0), "Request already continued");
242ErrorUtilities.VerifyThrow(HasActiveBuildRequest, "Request not building");
243ErrorUtilities.VerifyThrow(!_terminateEvent.WaitOne(0), "Request already terminated");
244ErrorUtilities.VerifyThrow(_pendingResourceRequests.Any(), "No pending resource requests");
339ErrorUtilities.VerifyThrow(_componentHost != null, "No host object set");
340ErrorUtilities.VerifyThrow(projectFiles.Length == properties.Length, "Properties and project counts not the same");
341ErrorUtilities.VerifyThrow(projectFiles.Length == toolsVersions.Length, "Tools versions and project counts not the same");
384ErrorUtilities.VerifyThrow(requests.Length == results.Length, "# results != # requests");
474ErrorUtilities.VerifyThrow(!_inMSBuildCallback, "Already in an MSBuild callback!");
484ErrorUtilities.VerifyThrow(_inMSBuildCallback, "Not in an MSBuild callback!");
493ErrorUtilities.VerifyThrow(Monitor.IsEntered(monitorLockObject), "Not running under the given lock");
554ErrorUtilities.VerifyThrow(_componentHost == null, "RequestBuilder already initialized.");
639ErrorUtilities.VerifyThrow(_requestTask == null, "Already have a task.");
681ErrorUtilities.VerifyThrow(_componentHost.LegacyThreadingData.MainThreadSubmissionId != _requestEntry.Request.SubmissionId, "Can't start builder thread when we are using legacy threading semantics for this request.");
865ErrorUtilities.VerifyThrow(result == null, "Result already set when exception was thrown.");
997ErrorUtilities.VerifyThrow(requests.Length == results.Length, "# results != # requests");
1015ErrorUtilities.VerifyThrow(!isContinue, "Unexpected null results during continue");
1106ErrorUtilities.VerifyThrow(_targetBuilder != null, "Target builder is null");
1321ErrorUtilities.VerifyThrow(_requestEntry.RequestConfiguration.SavedCurrentDirectory != null, "Current directory not previously saved.");
1322ErrorUtilities.VerifyThrow(_requestEntry.RequestConfiguration.SavedEnvironmentVariables != null, "Current environment not previously saved.");
1377ErrorUtilities.VerifyThrow(!_isZombie, "RequestBuilder has been zombied.");
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (16)
57ErrorUtilities.VerifyThrow(project != null, "Need a project.");
58ErrorUtilities.VerifyThrow(targetToAnalyze != null, "Need a target to analyze.");
92ErrorUtilities.VerifyThrow(_targetInputSpecification != null, "targetInputSpecification is null");
105ErrorUtilities.VerifyThrow(_targetOutputSpecification != null, "targetOutputSpecification is null");
204ErrorUtilities.VerifyThrow(itemVectorsReferencedInBothTargetInputsAndOutputs.Count > 0, "The target must have inputs.");
205ErrorUtilities.VerifyThrow(!IsItemVectorEmpty(itemVectorsInTargetInputs), "The target must have inputs.");
609ErrorUtilities.VerifyThrow(inputItemVectors.Count == 1,
713ErrorUtilities.VerifyThrow(numberOfInputItemVectorsWithAllChangedItems <= itemVectorsReferencedInBothTargetInputsAndOutputs.Count,
719ErrorUtilities.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\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)
329ErrorUtilities.VerifyThrow(string.IsNullOrEmpty(blocker.BlockingTarget), "Blocking target should be null because this is not a request blocking on a target");
334ErrorUtilities.VerifyThrow(string.IsNullOrEmpty(blocker.BlockingTarget), "Blocking target should be null because this is not a request blocking on a target");
343ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(blocker.BlockingTarget), "Blocking target should exist");
355ErrorUtilities.VerifyThrow(string.IsNullOrEmpty(blocker.BlockingTarget), "Blocking target should be null because this is not a request blocking on a target");
401ErrorUtilities.VerifyThrow(result.ParentGlobalRequestId == request.Parent.BuildRequest.GlobalRequestId, "Result's parent doesn't match request's parent.");
781ErrorUtilities.VerifyThrow(responses.Count > 0, "We failed to request a node to be created.");
1359ErrorUtilities.VerifyThrow(nodeId != InvalidNodeId, "Invalid node id specified.");
1374ErrorUtilities.VerifyThrow(config.ResultsNodeId != InvalidNodeId, "Configuration's results node is not set.");
1387ErrorUtilities.VerifyThrow(
1558ErrorUtilities.VerifyThrow(inProcNodesToCreate == 1, "We should never be trying to create more than one inproc node");
1852ErrorUtilities.VerifyThrow(request.Parent == null, "Unexpectedly generated a SubmissionComplete response for a request which is not top-level.");
2037ErrorUtilities.VerifyThrow(
2115ErrorUtilities.VerifyThrow(parentRequestNode != InvalidNodeId, "Invalid parent node provided.");
2118ErrorUtilities.VerifyThrow(result.ParentGlobalRequestId == requestWhichGeneratedResult.ParentGlobalRequestId, "Result's parent doesn't match request's parent.");
2177ErrorUtilities.VerifyThrow(request.ConfigurationId != BuildRequestConfiguration.InvalidConfigurationId, "Requests should have a valid configuration id at this point");
BackEnd\Shared\BuildRequestConfiguration.cs (15)
232ErrorUtilities.VerifyThrow(configId != InvalidConfigurationId, "Configuration ID must not be invalid when using this constructor.");
234ErrorUtilities.VerifyThrow(other._transferredState == null, "Unexpected transferred state still set on other configuration.");
375ErrorUtilities.VerifyThrow(!IsCached, "We shouldn't be accessing the ProjectInstance when the configuration is cached.");
387ErrorUtilities.VerifyThrow(_transferredProperties == null, "Shouldn't be transferring entire state of ProjectInstance when transferredProperties is not null.");
407ErrorUtilities.VerifyThrow(project != null, "Cannot set null project.");
513ErrorUtilities.VerifyThrow(IsLoaded, $"This {nameof(BuildRequestConfiguration)} must be loaded at the end of this method");
540ErrorUtilities.VerifyThrow(_projectInitialTargets == null, "Initial targets cannot be reset once they have been set.");
556ErrorUtilities.VerifyThrow(_projectDefaultTargets == null, "Default targets cannot be reset once they have been set.");
571ErrorUtilities.VerifyThrow(
590ErrorUtilities.VerifyThrow(!IsCached, "Configuration is cached, we shouldn't be accessing the lookup.");
767ErrorUtilities.VerifyThrow(request.ConfigurationId == ConfigurationId, "Request does not match configuration.");
768ErrorUtilities.VerifyThrow(_projectInitialTargets != null, "Initial targets have not been set.");
769ErrorUtilities.VerifyThrow(_projectDefaultTargets != null, "Default targets have not been set.");
773ErrorUtilities.VerifyThrow(
813ErrorUtilities.VerifyThrow(Path.IsPathRooted(referenceFullPath), "Method does not treat path normalization cases");
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.");
600ErrorUtilities.VerifyThrow(Link == null, "Attempt to edit a document that is not backed by a local xml is disallowed.");
642ErrorUtilities.VerifyThrow(FirstChild == null && LastChild == null, "Expecting no children");
683ErrorUtilities.VerifyThrow(child.NextSibling == null || child.NextSibling.PreviousSibling != this, "Invalid structure");
684ErrorUtilities.VerifyThrow(child.PreviousSibling == null || child.PreviousSibling.NextSibling != this, "Invalid structure");
Evaluation\Expander.cs (11)
531ErrorUtilities.VerifyThrow((options & ExpanderOptions.BreakOnNotEmpty) == 0, "not supported");
939ErrorUtilities.VerifyThrow(metadata != null, "Cannot expand metadata without providing metadata");
1069ErrorUtilities.VerifyThrow(options != ExpanderOptions.Invalid, "Must be expanding metadata of some kind");
1077ErrorUtilities.VerifyThrow(itemMetadataMatch.Success, "Need a valid item metadata.");
1197ErrorUtilities.VerifyThrow(properties != null, "Cannot expand properties without providing properties");
1880ErrorUtilities.VerifyThrow(matches.Count == 1, "Expected just one item vector");
1891ErrorUtilities.VerifyThrow(items != null, "Cannot expand items without providing items");
2004ErrorUtilities.VerifyThrow(evaluatedItems != null, "Cannot expand items without providing items");
2087ErrorUtilities.VerifyThrow(items != null, "Cannot expand items without providing items");
3693ErrorUtilities.VerifyThrow(_loggingContext != null, $"The logging context is missed. {nameof(IntrinsicFunctions.RegisterBuildCheck)} can not be invoked.");
5045ErrorUtilities.VerifyThrow(cachedTypeInformation.Item1 != null || cachedTypeInformation.Item2 != null, "Function type information needs either string or type represented.");