27 references to ConfigurationId
Microsoft.Build (15)
BackEnd\BuildManager\BuildManager.cs (1)
2409
BuildRequestConfiguration configuration = _configCache![result.
ConfigurationId
];
BackEnd\BuildManager\BuildSubmission.cs (2)
228
if (result.
ConfigurationId
!= BuildRequest?.ConfigurationId)
231
result.
ConfigurationId
, BuildRequest?.ConfigurationId);
BackEnd\BuildManager\CacheAggregator.cs (2)
88
ErrorUtilities.VerifyThrow(seenConfigIds.Contains(result.
ConfigurationId
), "Each result should have a corresponding configuration. Otherwise the caches are not consistent");
94
configIdMapping[result.
ConfigurationId
],
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (2)
433
BuildRequestConfiguration config = configCache[result.
ConfigurationId
];
458
BuildRequestConfiguration configuration = _configCache[result.
ConfigurationId
];
BackEnd\Components\Caching\ResultsCache.cs (3)
69
if (_resultsByConfiguration.TryGetValue(result.
ConfigurationId
, out BuildResult buildResult))
84
if (!_resultsByConfiguration.TryAdd(result.
ConfigurationId
, result))
86
ErrorUtilities.ThrowInternalError("Failed to add result for configuration {0}", result.
ConfigurationId
);
BackEnd\Components\Scheduler\Scheduler.cs (2)
387
BuildRequestConfiguration config = _configCache[result.
ConfigurationId
];
2096
|| !configCacheWithOverride.HasConfigurationInOverrideCache(result.
ConfigurationId
))
BackEnd\Shared\BuildResult.cs (3)
568
ErrorUtilities.VerifyThrow(results.
ConfigurationId
==
ConfigurationId
, "Result configurations don't match");
701
targetResultPair.Value.CacheItems(
ConfigurationId
, targetResultPair.Key);
Microsoft.Build.Engine.UnitTests (12)
BackEnd\BuildResult_Tests.cs (6)
50
Assert.Equal(result1.
ConfigurationId
, result2.
ConfigurationId
);
72
Assert.Equal(-1, result.
ConfigurationId
);
76
Assert.Equal(1, result2.
ConfigurationId
);
332
Assert.Equal(result.
ConfigurationId
, deserializedResult.
ConfigurationId
);
BackEnd\CacheAggregator_Tests.cs (1)
278
aggregatedBuildResult.
ConfigurationId
.ShouldNotBe(BuildRequestConfiguration.InvalidConfigurationId);
BackEnd\ResultsCache_Tests.cs (4)
442
copiedBuildResult.
ConfigurationId
.ShouldBe(initialBuildResult.
ConfigurationId
);
461
if (a.
ConfigurationId
!= b.
ConfigurationId
)
Graph\ResultCacheBasedBuilds_Tests.cs (1)
368
configEntries.First().ConfigurationId.ShouldBe(rootNodeBuildResult.
ConfigurationId
);