119 references to True
Microsoft.Build (91)
BackEnd\BuildManager\CacheAggregator.cs (1)
87
Assumed.
True
(seenConfigIds.Contains(result.ConfigurationId), "Each result should have a corresponding configuration. Otherwise the caches are not consistent");
BackEnd\BuildManager\LegacyThreadingData.cs (1)
58
Assumed.
True
(_instanceForMainThread == null || (_instanceForMainThread != null && value == null) || (_instanceForMainThread == value), "Should not assign to instanceForMainThread twice without cleaning it");
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (3)
1346
Assumed.
True
((requestsToIssue == null) || (requestsToIssue.Count == 0), "Entry shouldn't be ready if we also issued requests.");
1400
Assumed.
True
(config.WasGeneratedByNode, "InvalidConfigurationId");
1401
Assumed.
True
(_unresolvedConfigurationsById.ContainsKey(config.ConfigurationId), "NoUnresolvedConfiguration");
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (4)
187
Assumed.
True
(value == null || _requestBuilder == null, "Request Builder already set.");
204
Assumed.
True
(configuration.WasGeneratedByNode, "Configuration has already been resolved.");
344
Assumed.
True
(result.CircularDependency, "Received result for target in progress and it wasn't a circular dependency error.");
524
Assumed.
True
(addToIssueList, "Requests with unresolved configurations should always be added to the issue list.");
BackEnd\Components\Caching\ConfigCache.cs (2)
77
Assumed.
True
(config.ConfigurationId != 0, "Invalid configuration ID");
144
Assumed.
True
(configuration.IsLoaded, "Request to create configuration did not honor request to also load project.");
BackEnd\Components\Caching\RegisteredTaskObjectCache.cs (2)
36
Assumed.
True
(IsCollectionEmptyOrUncreated(RegisteredTaskObjectLifetime.Build), "Build lifetime objects were not disposed at the end of the build");
70
Assumed.
True
(IsCollectionEmptyOrUncreated(RegisteredTaskObjectLifetime.Build), "Build lifetime objects were not disposed at the end of the build");
BackEnd\Components\Caching\ResultsCache.cs (3)
111
Assumed.
True
(request.IsConfigurationResolved, "UnresolvedConfigurationInRequest");
119
Assumed.
True
(result.HasResultsForTarget(target), "No results in cache for target " + target);
164
Assumed.
True
(request.IsConfigurationResolved, "UnresolvedConfigurationInRequest");
BackEnd\Components\Communications\NodeProviderInProc.cs (1)
420
Assumed.
True
(foundEndpoint, "Received link status event for a node other than our peer.");
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (3)
419
Assumed.
True
(Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.TaskHost));
451
Assumed.
True
(Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.TaskHost));
515
Assumed.
True
(Handshake.IsHandshakeOptionEnabled(hostContext, HandshakeOptions.TaskHost));
BackEnd\Components\Logging\EvaluationLoggingContext.cs (1)
44
Assumed.
True
(IsValid, "invalid");
BackEnd\Components\Logging\LoggingService.cs (1)
1373
Assumed.
True
(_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 (1)
640
Assumed.
True
(_configCache.Value.HasConfiguration(configurationId), "Cannot find the project configuration while injecting non-serialized data from out-of-proc node.");
BackEnd\Components\Logging\NodeLoggingContext.cs (3)
49
Assumed.
True
(this.IsValid, "Build not started.");
74
Assumed.
True
(this.IsValid, "Build not started.");
86
Assumed.
True
(this.IsValid, "Build not started.");
BackEnd\Components\Logging\ProjectLoggingContext.cs (2)
271
Assumed.
True
(this.IsValid, "invalid");
281
Assumed.
True
(this.IsValid, "invalid");
BackEnd\Components\Logging\TaskLoggingContext.cs (1)
131
Assumed.
True
(this.IsValid, "invalid");
BackEnd\Components\ProjectCache\CacheContext.cs (1)
43
Assumed.
True
((graph != null) ^ (graphEntryPoints != null), "Either Graph is specified, or GraphEntryPoints is specified. Not both.");
BackEnd\Components\ProjectCache\CacheResult.cs (1)
63
Assumed.
True
(buildResult != null ^ proxyTargets != null, "Either buildResult is specified, or proxyTargets is specified. Not both.");
BackEnd\Components\ProjectCache\Experimental\CacheContext.cs (1)
45
Assumed.
True
((graph != null) ^ (graphEntryPoints != null), "Either Graph is specified, or GraphEntryPoints is specified. Not both.");
BackEnd\Components\ProjectCache\Experimental\CacheResult.cs (1)
65
Assumed.
True
(buildResult != null ^ proxyTargets != null, "Either buildResult is specified, or proxyTargets is specified. Not both.");
BackEnd\Components\RequestBuilder\RequestBuilder.cs (4)
228
Assumed.
True
(HasActiveBuildRequest, "Request not building");
245
Assumed.
True
(HasActiveBuildRequest, "Request not building");
488
Assumed.
True
(_inMSBuildCallback, "Not in an MSBuild callback!");
497
Assumed.
True
(Monitor.IsEntered(monitorLockObject), "Not running under the given lock");
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (5)
849
Assumed.
True
((itemVectorTransforms == null) || (itemVectorCollection.Equals(itemVectorTransforms)) || (itemVectorPartition.Count == 1), "If transforms have been separated out, there should only be one item vector per partition.");
963
Assumed.
True
(inputs[0] is string or ProjectItemInstance, "Must be either string or ProjectItemInstance");
968
Assumed.
True
(outputs[0] is string or ProjectItemInstance, "Must be either string or ProjectItemInstance");
1083
Assumed.
True
(inputs[0] is string or ProjectItemInstance, "Must be either string or ProjectItemInstance");
1088
Assumed.
True
(outputs[0] is string or ProjectItemInstance, "Must be either string or ProjectItemInstance");
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
529
Assumed.
True
(GatherTaskOutputs(null, howToExecuteTask, bucket), "The method GatherTaskOutputs() should never fail when inferring task outputs.");
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
1278
Assumed.
True
(_activeProxy, "Attempted to use an inactive task host.");
BackEnd\Components\Scheduler\SchedulableRequest.cs (5)
130
Assumed.
True
((parent == null) || (parent._schedulingData == collection), "Parent request does not belong to the same collection.");
400
Assumed.
True
(_assignedNodeId == Scheduler.InvalidNodeId || _assignedNodeId == nodeId, "Request must always resume on the same node on which it was started.");
419
Assumed.
True
(_state != SchedulableRequestState.Ready || result.CircularDependency, "Request can only be Completed from the Ready state if the result indicates a circular dependency occurred.");
640
Assumed.
True
(_requestsWeAreBlockedBy.TryGetValue(blockingRequestKey, out SchedulableRequest unblockingRequest), "We are not blocked by the specified request.");
641
Assumed.
True
(unblockingRequest._requestsWeAreBlocking.Contains(this), "The request unblocking us doesn't think it is blocking us.");
BackEnd\Components\Scheduler\Scheduler.cs (6)
374
Assumed.
True
(string.IsNullOrEmpty(blocker.BlockingTarget), "Blocking target should be null because this is not a request blocking on a target");
379
Assumed.
True
(string.IsNullOrEmpty(blocker.BlockingTarget), "Blocking target should be null because this is not a request blocking on a target");
400
Assumed.
True
(string.IsNullOrEmpty(blocker.BlockingTarget), "Blocking target should be null because this is not a request blocking on a target");
1454
Assumed.
True
(_componentHost.BuildParameters.DisableInProcNode || ForceAffinityOutOfProc, "Proxy requests should only get scheduled to out of proc nodes when the inproc node is disabled");
1835
Assumed.
True
(_configCache.HasConfiguration(request.ConfigurationId), "A request should have a configuration if it makes it this far in the build process.");
2121
Assumed.
True
(configCache.HasConfiguration(configurationId), "All non root requests should have a parent with a loaded configuration");
BackEnd\Shared\BuildRequest.cs (1)
415
Assumed.
True
(IsConfigurationResolved, "Configuration not resolved");
BackEnd\Shared\BuildRequestConfiguration.cs (3)
542
Assumed.
True
(IsLoaded, $"This {nameof(BuildRequestConfiguration)} must be loaded at the end of this method");
800
Assumed.
True
(CollectionHelpers.SetEquivalent(request.Targets, request.ProxyTargets.ProxyTargetToRealTargetMap.Keys), "Targets must be same as proxy targets");
838
Assumed.
True
(Path.IsPathRooted(referenceFullPath), "Method does not treat path normalization cases");
Collections\ConcurrentQueueExtensions.cs (1)
21
Assumed.
True
(stack.TryDequeue(out T result), "Unable to dequeue from queue");
Collections\ConcurrentStackExtensions.cs (2)
21
Assumed.
True
(stack.TryPeek(out T result), "Unable to peek from stack");
31
Assumed.
True
(stack.TryPop(out T result), "Unable to pop from stack");
Construction\ProjectElementContainer.cs (4)
390
Assumed.
True
(child.PreviousSibling == null && child.NextSibling == null, "Invalid structure");
651
Assumed.
True
(FirstChild == null && LastChild == null, "Expecting no children");
692
Assumed.
True
(child.NextSibling == null || child.NextSibling.PreviousSibling != this, "Invalid structure");
693
Assumed.
True
(child.PreviousSibling == null || child.PreviousSibling.NextSibling != this, "Invalid structure");
ElementLocation\XmlDocumentWithLocation.cs (1)
361
Assumed.
True
(Path.IsPathRooted(fullPath), "should be full path");
Errors\InternalLoggerException.cs (1)
93
Assumed.
True
(innerException != null || initializationException, "Need the logger exception.");
Evaluation\Conditionals\Parser.cs (1)
102
Assumed.
True
((optionSettings & ParserOptions.AllowProperties) != 0, "Properties should always be allowed.");
Evaluation\Conditionals\Scanner.cs (1)
63
Assumed.
True
((options & ParserOptions.AllowProperties) != 0, "Properties should always be allowed.");
Evaluation\Conditionals\Token.cs (1)
92
Assumed.
True
(
Evaluation\Evaluator.cs (1)
834
Assumed.
True
(_evaluationProfiler.IsEmpty(), "Evaluation profiler stack is not empty.");
Evaluation\Expander.cs (3)
534
Assumed.
True
((options & ExpanderOptions.BreakOnNotEmpty) == 0, "not supported");
1161
Assumed.
True
(itemMetadataMatch.Success, "Need a valid item metadata.");
4309
Assumed.
True
(cachedTypeInformation.Item1 != null || cachedTypeInformation.Item2 != null, "Function type information needs either string or type represented.");
Evaluation\SimpleProjectRootElementCache.cs (1)
70
Assumed.
True
(_cache.TryGetValue(key, out _), "Project should have been added into cache and boosted");
Graph\GraphBuilder.cs (4)
231
Assumed.
True
(projectsByPath.TryGetValue(referencingProjectPath, out var referencingNodes), "nodes should include solution projects");
236
Assumed.
True
(projectsByPath.TryGetValue(referencedProjectPath, out List<ProjectGraphNode> projectToReturn), "nodes should include solution projects");
701
Assumed.
True
(ReferenceItems.TryGetValue(key, out ProjectItemInstance referenceItem), "All requested keys should exist");
746
Assumed.
True
(ReferenceItems.TryRemove(key, out _), "All requested keys should exist");
Graph\ProjectGraphNode.cs (1)
76
Assumed.
True
(reference._referencingProjects.Contains(this), "references should point to the nodes referencing them");
Graph\ProjectInterpretation.cs (1)
264
Assumed.
True
(graphBuilder.Edges[(outerBuildReferencingProject, innerBuild)]
Instance\ProjectInstance.cs (1)
741
Assumed.
True
(filter == null || isImmutable, "The result of a filtered ProjectInstance clone must be immutable.");
Instance\TaskFactoryEngineContext.cs (1)
404
Assumed.
True
(_activeProxy, "Attempted to use an inactive task factory logging host.");
Instance\TaskRegistry.cs (2)
458
Assumed.
True
(_isInitialized, "Attempt to read from TaskRegistry before its initialization was finished.");
1170
Assumed.
True
(taskFactoryParameters.Runtime != null && taskFactoryParameters.Architecture != null, "if the parameters are non-null, it should contain both Runtime and Architecture when we get here!");
src\msbuild\src\Shared\ErrorUtilities.cs (1)
50
Assumed.
True
(Monitor.IsEntered(locker), "Lock should already have been taken");
src\msbuild\src\Shared\OutOfProcTaskHostTaskResult.cs (1)
70
Assumed.
True
(
src\msbuild\src\Shared\TaskLoggingHelper.cs (2)
795
Assumed.
True
(string.IsNullOrEmpty(messageCode), "Called LogErrorFromResources instead of LogErrorWithCodeFromResources, but message '" + throwAwayMessageBody + "' does have an error code '" + messageCode + "'");
1134
Assumed.
True
(string.IsNullOrEmpty(messageCode), "Called LogWarningFromResources instead of LogWarningWithCodeFromResources, but message '" + throwAwayMessageBody + "' does have an error code '" + messageCode + "'");
Utilities\ProjectWriter.cs (1)
153
Assumed.
True
(itemVectorTransform.Success, "Item vector transform must be matched by both the raw and decorated regular expressions.");
Microsoft.Build.Framework (14)
AssemblyUtilities.cs (1)
135
Assumed.
True
(cultureTypesType?.Name == "CultureTypes" &&
ItemSpecModifiers.cs (3)
497
Assumed.
True
(
562
Assumed.
True
(
572
Assumed.
True
(
Utilities\AssemblyLoadInfo.cs (3)
27
Assumed.
True
(
30
Assumed.
True
(
198
Assumed.
True
(Path.IsPathRooted(assemblyFile), "Assembly file path should be rooted");
Utilities\AssemblyNameExtension.cs (1)
384
Assumed.
True
(extensionToAdd.Immutable, "ExtensionToAdd is not immutable");
Utilities\FileMatcher.cs (2)
851
Assumed.
True
(
855
Assumed.
True
(
XMakeAttributes.cs (4)
162
Assumed.
True
(runtimeA != string.Empty && runtimeB != string.Empty, "We should never get an empty string passed to this method");
206
Assumed.
True
(runtimeA != string.Empty && runtimeB != string.Empty, "We should never get an empty string passed to this method");
279
Assumed.
True
(architectureA != string.Empty && architectureB != string.Empty, "We should never get an empty string passed to this method");
346
Assumed.
True
(architectureA != string.Empty && architectureB != string.Empty, "We should never get an empty string passed to this method");
Microsoft.Build.Tasks.Core (6)
AssemblyDependency\Reference.cs (3)
622
Assumed.
True
(IsPrimary || _primarySourceItem == null, "Only a primary reference can have a primary source item.");
745
Assumed.
True
(remappedFrom.Immutable, " Remapped from is NOT immutable");
746
Assumed.
True
(remappedTo.Immutable, " Remapped to is NOT immutable");
CommandLineBuilderExtension.cs (1)
236
Assumed.
True
(treatAsFlags == null ||
GenerateResource.cs (1)
2102
Assumed.
True
(OutputResources != null && OutputResources.Length != 0, "Should be at least one output resource");
src\msbuild\src\Shared\ErrorUtilities.cs (1)
50
Assumed.
True
(Monitor.IsEntered(locker), "Lock should already have been taken");
Microsoft.Build.Utilities.Core (3)
src\msbuild\src\Shared\ErrorUtilities.cs (1)
50
Assumed.
True
(Monitor.IsEntered(locker), "Lock should already have been taken");
src\msbuild\src\Shared\TaskLoggingHelper.cs (2)
795
Assumed.
True
(string.IsNullOrEmpty(messageCode), "Called LogErrorFromResources instead of LogErrorWithCodeFromResources, but message '" + throwAwayMessageBody + "' does have an error code '" + messageCode + "'");
1134
Assumed.
True
(string.IsNullOrEmpty(messageCode), "Called LogWarningFromResources instead of LogWarningWithCodeFromResources, but message '" + throwAwayMessageBody + "' does have an error code '" + messageCode + "'");
MSBuild (5)
OutOfProcTaskHostNode.cs (1)
1484
Assumed.
True
(taskContext is null || taskContext.State != TaskExecutionState.BlockedOnCallback, "Task completed while still in BlockedOnCallback state.");
src\msbuild\src\Shared\ErrorUtilities.cs (1)
50
Assumed.
True
(Monitor.IsEntered(locker), "Lock should already have been taken");
src\msbuild\src\Shared\OutOfProcTaskHostTaskResult.cs (1)
70
Assumed.
True
(
XMake.cs (2)
1734
Assumed.
True
(ex.HasBeenLogged, "Should have been logged");
2362
Assumed.
True
(!invokeBuild || !string.IsNullOrEmpty(projectFile), "We should have a project file if we're going to build.");