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