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