70 references to Null
Microsoft.Build (62)
BackEnd\BuildManager\BuildManager.cs (3)
2224Assumed.Null(submission.BuildResult?.Exception, "Exceptions only get set when the graph submission gets completed with an exception in OnThreadException. That should not happen during graph builds."); 3471Assumed.Null(_configCache, "caches must not be set at this point"); 3472Assumed.Null(_resultsCache, "caches must not be set at this point");
BackEnd\BuildManager\CacheAggregator.cs (1)
74Assumed.Null(_aggregatedConfigCache.GetMatchingConfiguration(config), "Input caches should not contain entries for the same configuration");
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (2)
651Assumed.Null(_componentHost, "BuildRequestEngine already initialized!"); 790Assumed.Null(activeEntry, "Multiple active requests");
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (6)
413Assumed.Null(_unresolvedConfigurations, "All configurations must be resolved before Continue may be called."); 414Assumed.Null(_outstandingRequests, "All outstanding requests must have been satisfied."); 485Assumed.Null(Result, "Entry already Completed."); 493Assumed.Null(_unresolvedConfigurations, "Entry must not have any unresolved configurations."); 494Assumed.Null(_outstandingRequests, "Entry must have no outstanding requests."); 495Assumed.Null(_outstandingResults, "Results must be consumed before request may be completed.");
BackEnd\Components\Caching\ConfigCacheWithOverride.cs (2)
76Assumed.Null(CurrentCache.GetMatchingConfiguration(config), "caches should not overlap"); 93Assumed.Null(CurrentCache.GetMatchingConfiguration(configMetadata), "caches should not overlap");
BackEnd\Components\Caching\ResultsCacheWithOverride.cs (2)
50Assumed.Null(CurrentCache.GetResultForRequest(request), "caches should not overlap"); 64Assumed.Null(CurrentCache.GetResultsForConfiguration(configurationId), "caches should not overlap");
BackEnd\Components\Communications\NodeEndpointInProc.cs (4)
357Assumed.Null(_packetPump, "packetPump != null"); 358Assumed.Null(_packetAvailable, "packetAvailable != null"); 359Assumed.Null(_terminatePacketPump, "terminatePacketPump != null"); 360Assumed.Null(_packetQueue, "packetQueue != null");
BackEnd\Components\Communications\NodeManager.cs (1)
165Assumed.Null(_componentHost, "NodeManager already initialized.");
BackEnd\Components\Communications\TaskHostNodeManager.cs (1)
88Assumed.Null(_componentHost, "TaskHostNodeManager already initialized.");
BackEnd\Components\RequestBuilder\Lookup.cs (2)
682Assumed.Null(existing, "Cannot add an itemgroup of this type."); 709Assumed.Null(_lookupScopes.ItemTypesToTruncateAtThisScope, "Cannot add an itemgroup of this type.");
BackEnd\Components\RequestBuilder\RequestBuilder.cs (6)
205Assumed.Null(_targetBuilder, "targetBuilder not null"); 206Assumed.Null(_nodeLoggingContext, "nodeLoggingContext not null"); 207Assumed.Null(_requestEntry, "requestEntry not null"); 558Assumed.Null(_componentHost, "RequestBuilder already initialized."); 643Assumed.Null(_requestTask, "Already have a task."); 868Assumed.Null(result, "Result already set when exception was thrown.");
BackEnd\Components\RequestBuilder\TargetEntry.cs (2)
700Assumed.Null(_legacyCallTargetScopes, "We should have already left any legacy call target scopes."); 747Assumed.Null(_legacyCallTargetScopes, "We should have already left any legacy call target scopes.");
BackEnd\Components\Scheduler\SchedulableRequest.cs (1)
339Assumed.Null(BlockingTarget, "Cannot block again if we're already blocked on a target");
BackEnd\Components\Scheduler\Scheduler.cs (1)
1922Assumed.Null(request.Parent, "Unexpectedly generated a SubmissionComplete response for a request which is not top-level.");
BackEnd\Shared\BuildRequestConfiguration.cs (5)
243Assumed.Null(other._transferredState, "Unexpected transferred state still set on other configuration."); 415Assumed.Null(_transferredProperties, "Shouldn't be transferring entire state of ProjectInstance when transferredProperties is not null."); 569Assumed.Null(_projectInitialTargets, "Initial targets cannot be reset once they have been set."); 585Assumed.Null(_projectDefaultTargets, "Default targets cannot be reset once they have been set."); 600Assumed.Null(_projectTargets, "Targets cannot be reset once set.");
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
625Assumed.Null(TaskInstance, "Task Instance should be null");
Construction\ProjectChooseElement.cs (1)
90Assumed.Null(containingProject.Link, "Attempt to edit a document that is not backed by a local xml is disallowed.");
Construction\ProjectElement.cs (2)
167Assumed.Null(Link, "Attempt to edit a document that is not backed by a local xml is disallowed."); 264Assumed.Null(Link, "Attempt to edit a document that is not backed by a local xml is disallowed.");
Construction\ProjectElementContainer.cs (6)
391Assumed.Null(Link, "Attempt to edit a document that is not backed by a local xml is disallowed."); 441Assumed.Null(Link, "Attempt to edit a document that is not backed by a local xml is disallowed."); 458Assumed.Null(Link, "Attempt to edit a document that is not backed by a local xml is disallowed."); 474Assumed.Null(Link, "Attempt to edit a document that is not backed by a local xml is disallowed."); 494Assumed.Null(Link, "Attempt to edit a document that is not backed by a local xml is disallowed."); 609Assumed.Null(Link, "Attempt to edit a document that is not backed by a local xml is disallowed.");
Construction\ProjectRootElement.cs (3)
1779Assumed.Null(document.FullPath, "Only virtual documents supported"); 1818Assumed.Null(Link, "Attempt to edit a document that is not backed by a local xml is disallowed."); 1880Assumed.Null(Link, "Attempt to edit a document that is not backed by a local xml is disallowed.");
Construction\ProjectTaskElement.cs (1)
215Assumed.Null(Link, "Attempt to edit a document that is not backed by a local xml is disallowed.");
Construction\ProjectUsingTaskBodyElement.cs (1)
161Assumed.Null(parentUsingTask.Link, "TaskFactory");
Construction\UsingTaskParameterGroupElement.cs (1)
129Assumed.Null(parentUsingTask.Link, "TaskFactory");
Definition\Project.cs (1)
3566Assumed.Null(_data.Expander.Metadata, "Should be null");
Instance\ProjectInstance.cs (2)
2441Assumed.Null(ProjectRootElementCache, $"{nameof(ProjectRootElementCache)} is already set. Cannot set again"); 2442Assumed.Null(_hostServices, $"{nameof(HostServices)} is already set. Cannot set again");
Logging\ReusableLogger.cs (1)
341Assumed.Null(_buildTimeEventSource, "Already registered for build-time.");
Resources\AssemblyResources.cs (1)
32Assumed.Null(s_msbuildExeResourceManager, "Only one extra resource manager");
src\msbuild\src\Shared\Debugging\PrintLineDebugger.cs (1)
81Assumed.Null(currentWriter, "Cannot set a new writer over an old writer. Remove the old one first");
src\msbuild\src\Shared\TaskLoggingHelper.cs (1)
330Assumed.Null(errorCode, "This message contains an error code (" + errorCode + "), yet it was logged as a regular message: " + message);
Microsoft.Build.Tasks.Core (1)
src\msbuild\src\Shared\Debugging\PrintLineDebugger.cs (1)
81Assumed.Null(currentWriter, "Cannot set a new writer over an old writer. Remove the old one first");
Microsoft.Build.Utilities.Core (2)
src\msbuild\src\Shared\Debugging\PrintLineDebugger.cs (1)
81Assumed.Null(currentWriter, "Cannot set a new writer over an old writer. Remove the old one first");
src\msbuild\src\Shared\TaskLoggingHelper.cs (1)
330Assumed.Null(errorCode, "This message contains an error code (" + errorCode + "), yet it was logged as a regular message: " + message);
MSBuild (5)
JsonOutputFormatter.cs (4)
35Assumed.Null(_topLevelNode["Properties"], "Should not add multiple lists of properties to the json format."); 53Assumed.Null(_topLevelNode["Items"], "Should not add multiple lists of items to the json format."); 89Assumed.Null(_topLevelNode["Items"], "Should not add multiple lists of items to the json format."); 130Assumed.Null(_topLevelNode["TargetResults"], "Should not add multiple lists of target results to the json format.");
src\msbuild\src\Shared\Debugging\PrintLineDebugger.cs (1)
81Assumed.Null(currentWriter, "Cannot set a new writer over an old writer. Remove the old one first");