7 writes to ConfigurationId
Microsoft.Build (3)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (3)
515config.ConfigurationId = response.GlobalConfigurationId; 1155request.Config.ConfigurationId = GetNextUnresolvedConfigurationId(); 1161request.Config.ConfigurationId = matchingConfig.ConfigurationId;
Microsoft.Build.Engine.UnitTests (4)
BackEnd\BuildRequestConfiguration_Tests.cs (4)
141config1.ConfigurationId = -2; 150config1.ConfigurationId = 1; 291configuration.ConfigurationId = 1; 365configuration.ConfigurationId = 1;
50 references to ConfigurationId
Microsoft.Build (37)
BackEnd\BuildManager\BuildManager.cs (11)
1324AddBuildRequestToSubmission(submission, resolvedConfiguration.ConfigurationId); 1657AddBuildRequestToSubmission(submission, configuration.ConfigurationId); 2238_resultsCache!.ClearResultsForConfiguration(existingConfiguration.ConfigurationId); 2285AddBuildRequestToSubmission(submission, configuration.ConfigurationId, projectContextId); 2292AddProxyBuildRequestToSubmission(submission, configuration.ConfigurationId, cacheResult.ProxyTargets, projectContextId); 2300AddBuildRequestToSubmission(submission, configuration.ConfigurationId, projectContextId); 2390var response = new BuildRequestConfigurationResponse(unresolvedConfiguration.ConfigurationId, resolvedConfiguration.ConfigurationId, resolvedConfiguration.ResultsNodeId); 2398configurationsOnNode.Add(resolvedConfiguration.ConfigurationId); 2433&& buildSubmission.BuildRequest.ConfigurationId == configuration.ConfigurationId 2438: new BuildEventContext(result.SubmissionId, node, configuration.Project?.EvaluationId ?? BuildEventContext.InvalidEvaluationId, configuration.ConfigurationId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId);
BackEnd\BuildManager\CacheAggregator.cs (2)
73seenConfigIds.Add(config.ConfigurationId); 78configIdMapping[config.ConfigurationId] = _lastConfigurationId;
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (8)
1157unresolvedConfigurationsAdded.Add(request.Config.ConfigurationId); 1161request.Config.ConfigurationId = matchingConfig.ConfigurationId; 1173configurationId: request.Config.ConfigurationId, 1192request.Config.ConfigurationId); 1202configurationId: matchingConfig.ConfigurationId, 1257unresolvedConfigurationsAdded.Remove(unresolvedConfigurationToIssue.ConfigurationId); 1334ErrorUtilities.VerifyThrow(_unresolvedConfigurations.HasConfiguration(config.ConfigurationId), "NoUnresolvedConfiguration"); 1335TraceEngine("Issuing configuration request for node config {0}", config.ConfigurationId);
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (8)
127ErrorUtilities.VerifyThrow(requestConfiguration.ConfigurationId == request.ConfigurationId, "Configuration id mismatch"); 217ErrorUtilities.VerifyThrow(State == BuildRequestEntryState.Active, "Must be in Active state to wait for blocking request. Config: {0} State: {1}", RequestConfiguration.ConfigurationId, State); 307ErrorUtilities.VerifyThrow(State == BuildRequestEntryState.Waiting || _outstandingRequests == null, "Entry must be in the Waiting state to report results, or we must have flushed our requests due to an error. Config: {0} State: {1} Requests: {2}", RequestConfiguration.ConfigurationId, State, _outstandingRequests != null); 385ErrorUtilities.VerifyThrow(State == BuildRequestEntryState.Waiting, "Entry must be in the waiting state to be unblocked. Config: {0} State: {1} Request: {2}", RequestConfiguration.ConfigurationId, State, Request.GlobalRequestId); 386ErrorUtilities.VerifyThrow(_blockingGlobalRequestId != BuildRequest.InvalidGlobalRequestId, "Entry must be waiting on another request to be unblocked. Config: {0} Request: {1}", RequestConfiguration.ConfigurationId, Request.GlobalRequestId); 405ErrorUtilities.VerifyThrow(State == BuildRequestEntryState.Ready, "Entry must be in the Ready state. Config: {0} State: {1}", RequestConfiguration.ConfigurationId, State); 482ErrorUtilities.VerifyThrow(State == BuildRequestEntryState.Active, "Entry must be active before it can be Completed successfully. Config: {0} State: {1}", RequestConfiguration.ConfigurationId, State); 500ErrorUtilities.VerifyThrow(State == BuildRequestEntryState.Active || State == BuildRequestEntryState.Waiting, "Must be in Active or Waiting state to wait for results. Config: {0} State: {1}", RequestConfiguration.ConfigurationId, State);
BackEnd\Components\Caching\ConfigCache.cs (3)
77ErrorUtilities.VerifyThrow(config.ConfigurationId != 0, "Invalid configuration ID"); 82ErrorUtilities.VerifyThrow(!_configurations.ContainsKey(configId), "Configuration {0} already cached", config.ConfigurationId); 402return config.ConfigurationId;
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
461projectInstanceId: cacheRequest.Configuration.ConfigurationId,
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1203_requestEntry.RequestConfiguration.ConfigurationId,
BackEnd\Components\Scheduler\Scheduler.cs (1)
1669TraceScheduler("Created request {0} (node request {1}) for transfer of configuration {2}'s results from node {3} to node {4}", newRequest.GlobalRequestId, newRequest.NodeRequestId, configuration.ConfigurationId, configuration.ResultsNodeId, parentRequest.AssignedNode);
BackEnd\Shared\BuildRequestConfiguration.cs (2)
436ErrorUtilities.VerifyThrow(!IsLoaded, "Already loaded the project for this configuration id {0}.", ConfigurationId); 767ErrorUtilities.VerifyThrow(request.ConfigurationId == ConfigurationId, "Request does not match configuration.");
Microsoft.Build.Engine.UnitTests (13)
BackEnd\BuildRequestConfiguration_Tests.cs (5)
123Assert.Equal(-1, config1.ConfigurationId); 127Assert.Equal(1, config2.ConfigurationId); 131Assert.Equal(0, config3.ConfigurationId); 149Assert.Equal(0, config1.ConfigurationId); 151Assert.Equal(1, config1.ConfigurationId);
BackEnd\BuildRequestEngine_Tests.cs (1)
479BuildRequestConfigurationResponse response = new BuildRequestConfigurationResponse(_newConfiguration_Config.ConfigurationId, 2, 0);
BackEnd\CacheAggregator_Tests.cs (2)
290aggregatedConfig.ConfigurationId.ShouldNotBe(BuildRequestConfiguration.InvalidConfigurationId); 294var aggregatedConfigWithInitialId = aggregatedConfig.ShallowCloneWithNewId(inputConfiguration.ConfigurationId);
BackEnd\ConfigCache_Tests.cs (2)
116copy[initialConfiguration.ConfigurationId].ProjectDefaultTargets.ShouldBe(initialConfiguration.ProjectDefaultTargets); 117copy[initialConfiguration.ConfigurationId].ProjectInitialTargets.ShouldBe(initialConfiguration.ProjectInitialTargets);
BackEnd\RequestBuilder_Tests.cs (2)
279string fileName = GetTestProjectFile(config.ConfigurationId); 302BuildRequest newRequest = CreateNewBuildRequest(matchingConfig.ConfigurationId, request.Targets);
Graph\ResultCacheBasedBuilds_Tests.cs (1)
368configEntries.First().ConfigurationId.ShouldBe(rootNodeBuildResult.ConfigurationId);