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