22 instantiations of ConfigurationMetadata
Microsoft.Build (9)
BackEnd\BuildManager\BuildManager.cs (1)
856
new
ConfigurationMetadata
(project),
BackEnd\Components\Caching\ConfigCache.cs (3)
84
_configurationIdsByMetadata.Add(new
ConfigurationMetadata
(config), configId);
98
_configurationIdsByMetadata.Remove(new
ConfigurationMetadata
(config));
111
return GetMatchingConfiguration(new
ConfigurationMetadata
(config));
BackEnd\Shared\ConfigurationMetadata.cs (1)
114
return new
ConfigurationMetadata
(translator);
Graph\GraphBuilder.cs (2)
418
var configurationMetadata = new
ConfigurationMetadata
(entryPoint.ProjectFile, globalPropertyDictionary);
601
new
ConfigurationMetadata
(projectPath, CreatePropertyDictionary(globalProperties)),
Graph\ProjectGraphNode.cs (1)
90
return new
ConfigurationMetadata
(ProjectInstance.FullPath, ProjectInstance.GlobalPropertiesDictionary);
Graph\ProjectInterpretation.cs (1)
199
var referenceConfig = new
ConfigurationMetadata
(projectReferenceFullPath, referenceGlobalProperties);
Microsoft.Build.Engine.UnitTests (13)
BackEnd\ConfigCache_Tests.cs (2)
110
copiedConfigurations.ShouldAllBe(config => initial.GetMatchingConfiguration(new
ConfigurationMetadata
(config)).Equals(config));
111
initialConfigurations.ShouldAllBe(config => copy.GetMatchingConfiguration(new
ConfigurationMetadata
(config)).Equals(config));
BackEnd\ConfigurationMetadata_Tests.cs (11)
41
ConfigurationMetadata metadata = new
ConfigurationMetadata
(config);
53
ConfigurationMetadata metadata = new
ConfigurationMetadata
(project);
64
ConfigurationMetadata metadata = new
ConfigurationMetadata
(config);
77
ConfigurationMetadata metadata = new
ConfigurationMetadata
(project);
93
ConfigurationMetadata metadata1 = new
ConfigurationMetadata
(config);
94
ConfigurationMetadata metadata2 = new
ConfigurationMetadata
(project);
109
ConfigurationMetadata metadata1 = new
ConfigurationMetadata
(config);
110
ConfigurationMetadata metadata2 = new
ConfigurationMetadata
(project);
115
ConfigurationMetadata metadata3 = new
ConfigurationMetadata
(config2);
120
ConfigurationMetadata metadata4 = new
ConfigurationMetadata
(config3);
130
var initial = new
ConfigurationMetadata
("path", globalProperties);
71 references to ConfigurationMetadata
Microsoft.Build (46)
BackEnd\Components\Caching\ConfigCache.cs (11)
31
private IDictionary<
ConfigurationMetadata
, int> _configurationIdsByMetadata;
44
_configurationIdsByMetadata = new Dictionary<
ConfigurationMetadata
, int>();
119
public BuildRequestConfiguration GetMatchingConfiguration(
ConfigurationMetadata
configMetadata)
136
public BuildRequestConfiguration GetMatchingConfiguration(
ConfigurationMetadata
configMetadata, ConfigCreateCallback callback, bool loadProject)
200
_configurationIdsByMetadata = new Dictionary<
ConfigurationMetadata
, int>();
228
Dictionary<
ConfigurationMetadata
, int> configurationIdsByMetadataToKeep = new Dictionary<
ConfigurationMetadata
, int>();
232
foreach (KeyValuePair<
ConfigurationMetadata
, int> metadata in _configurationIdsByMetadata)
381
(ITranslator aTranslator, ref
ConfigurationMetadata
configMetadata) => aTranslator.Translate(ref configMetadata,
ConfigurationMetadata
.FactoryForDeserialization),
383
capacity => new Dictionary<
ConfigurationMetadata
, int>(capacity));
BackEnd\Components\Caching\ConfigCacheWithOverride.cs (2)
94
public BuildRequestConfiguration GetMatchingConfiguration(
ConfigurationMetadata
configMetadata)
111
public BuildRequestConfiguration GetMatchingConfiguration(
ConfigurationMetadata
configMetadata, ConfigCreateCallback callback, bool loadProject)
BackEnd\Components\Caching\IConfigCache.cs (2)
54
BuildRequestConfiguration GetMatchingConfiguration(
ConfigurationMetadata
configMetadata);
63
BuildRequestConfiguration GetMatchingConfiguration(
ConfigurationMetadata
configMetadata, ConfigCreateCallback callback, bool loadProject);
BackEnd\Shared\ConfigurationMetadata.cs (5)
20
internal class ConfigurationMetadata : IEquatable<
ConfigurationMetadata
>, ITranslatable
112
public static
ConfigurationMetadata
FactoryForDeserialization(ITranslator translator)
134
return InternalEquals((
ConfigurationMetadata
)obj);
144
public bool Equals(
ConfigurationMetadata
other)
161
private bool InternalEquals(
ConfigurationMetadata
other)
Graph\GraphBuilder.cs (21)
43
private readonly List<
ConfigurationMetadata
> _entryPointConfigurationMetadata;
45
private readonly ParallelWorkSet<
ConfigurationMetadata
, ParsedProject> _graphWorkSet;
53
private ConcurrentDictionary<
ConfigurationMetadata
, Lazy<ProjectInstance>> _platformNegotiationInstancesCache = new();
69
IEqualityComparer<
ConfigurationMetadata
> configComparer = EqualityComparer<
ConfigurationMetadata
>.Default;
71
_graphWorkSet = new ParallelWorkSet<
ConfigurationMetadata
, ParsedProject>(
120
private void AddEdges(Dictionary<
ConfigurationMetadata
, ParsedProject> allParsedProjects)
134
private void AddEdgesFromProjectReferenceItems(Dictionary<
ConfigurationMetadata
, ParsedProject> allParsedProjects, GraphEdges edges)
200
private static void AddEdgesFromSolution(IReadOnlyDictionary<
ConfigurationMetadata
, ParsedProject> allParsedProjects, IReadOnlyDictionary<string, IReadOnlyCollection<string>> solutionDependencies, GraphEdges edges)
407
private static List<
ConfigurationMetadata
> AddGraphBuildPropertyToEntryPoints(IEnumerable<ProjectGraphEntryPoint> entryPoints)
410
var entryPointConfigurationMetadata = new List<
ConfigurationMetadata
>();
418
var
configurationMetadata = new ConfigurationMetadata(entryPoint.ProjectFile, globalPropertyDictionary);
442
Dictionary<
ConfigurationMetadata
, ParsedProject> allParsedProjects)
525
private ParsedProject ParseProject(
ConfigurationMetadata
configurationMetadata)
552
private Dictionary<
ConfigurationMetadata
, ParsedProject> FindGraphNodes()
554
foreach (
ConfigurationMetadata
projectToEvaluate in _entryPointConfigurationMetadata)
568
private void SubmitProjectForParsing(
ConfigurationMetadata
projectToEvaluate)
704
internal IReadOnlyDictionary<(
ConfigurationMetadata
,
ConfigurationMetadata
), ProjectItemInstance> TestOnly_AsConfigurationMetadata()
723
public
ConfigurationMetadata
ConfigurationMetadata { get; }
727
public ParsedProject(
ConfigurationMetadata
configurationMetadata, ProjectGraphNode graphNode, List<ProjectInterpretation.ReferenceInfo> referenceInfos)
Graph\ProjectGraphNode.cs (1)
88
internal
ConfigurationMetadata
ToConfigurationMetadata()
Graph\ProjectInterpretation.cs (4)
56
internal readonly record struct ReferenceInfo(
ConfigurationMetadata
ReferenceConfiguration, ProjectItemInstance ProjectReferenceItem);
199
var
referenceConfig = new ConfigurationMetadata(projectReferenceFullPath, referenceGlobalProperties);
246
public void AddInnerBuildEdges(Dictionary<
ConfigurationMetadata
, ParsedProject> allNodes, GraphBuilder graphBuilder)
248
foreach (KeyValuePair<
ConfigurationMetadata
, ParsedProject> node in allNodes)
Microsoft.Build.Engine.UnitTests (25)
BackEnd\ConfigurationMetadata_Tests.cs (13)
41
ConfigurationMetadata
metadata = new ConfigurationMetadata(config);
53
ConfigurationMetadata
metadata = new ConfigurationMetadata(project);
64
ConfigurationMetadata
metadata = new ConfigurationMetadata(config);
77
ConfigurationMetadata
metadata = new ConfigurationMetadata(project);
93
ConfigurationMetadata
metadata1 = new ConfigurationMetadata(config);
94
ConfigurationMetadata
metadata2 = new ConfigurationMetadata(project);
109
ConfigurationMetadata
metadata1 = new ConfigurationMetadata(config);
110
ConfigurationMetadata
metadata2 = new ConfigurationMetadata(project);
115
ConfigurationMetadata
metadata3 = new ConfigurationMetadata(config2);
120
ConfigurationMetadata
metadata4 = new ConfigurationMetadata(config3);
130
var
initial = new ConfigurationMetadata("path", globalProperties);
133
var
copy =
ConfigurationMetadata
.FactoryForDeserialization(TranslationHelpers.GetReadTranslator());
Graph\GraphLoadedFromSolution_tests.cs (10)
543
foreach ((
ConfigurationMetadata
,
ConfigurationMetadata
) graphFromSolutionEdge in graphFromSolutionEdges.Keys)
554
foreach ((
ConfigurationMetadata
,
ConfigurationMetadata
) graphFromSolutionEdge in graphFromSolutionEdges.Keys)
639
IEnumerable<ProjectItemInstance> GetOutgoingEdgeItemsFromNode(ProjectGraphNode node, IReadOnlyDictionary<(
ConfigurationMetadata
,
ConfigurationMetadata
), ProjectItemInstance> edgeInfos)
644
IEnumerable<ProjectItemInstance> GetIncomingEdgeItemsToNode(ProjectGraphNode node, IReadOnlyDictionary<(
ConfigurationMetadata
,
ConfigurationMetadata
), ProjectItemInstance> edgeInfos)
655
private static bool EdgeCompliesWithSolutionDependency((
ConfigurationMetadata
,
ConfigurationMetadata
) edge, (int, int) solutionDependency)
Graph\GraphTestingUtilities.cs (2)
172
internal static string GetProjectFileName(
ConfigurationMetadata
config)
184
internal static int GetProjectNumber(
ConfigurationMetadata
config)