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