8 instantiations of SdkResolverManifest
Microsoft.Build (4)
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (1)
220manifestsList.Add(new SdkResolverManifest(DisplayName: assemblyPath, Path: assemblyPath, ResolvableSdkRegex: null));
BackEnd\Components\SdkResolution\SdkResolverManifest.cs (1)
104SdkResolverManifest manifest = new SdkResolverManifest();
BackEnd\Components\SdkResolution\SdkResolverService.cs (2)
423SdkResolverManifest sdkResolverManifest = new SdkResolverManifest(DisplayName: "TestResolversManifest", Path: null, ResolvableSdkRegex: null); 490sdkDefaultResolversManifest = new SdkResolverManifest(DisplayName: "DefaultResolversManifest", Path: null, ResolvableSdkRegex: null);
Microsoft.Build.Engine.UnitTests (4)
BackEnd\SdkResolverService_Tests.cs (4)
728var man = new SdkResolverManifest(DisplayName: "TestResolversManifest", Path: null, ResolvableSdkRegex: new Regex("abc")); 730man = new SdkResolverManifest(DisplayName: "TestResolversManifest", Path: null, null); 796SdkResolverManifest sdkResolverManifest = new SdkResolverManifest(resolver.Name, null, null); 801SdkResolverManifest sdkResolverManifest = new SdkResolverManifest(
48 references to SdkResolverManifest
Microsoft.Build (38)
BackEnd\Components\SdkResolution\CachingSdkResolverLoader.cs (4)
25private readonly ConcurrentDictionary<SdkResolverManifest, IReadOnlyList<SdkResolver>> _resolversByManifest = new(); 35private IReadOnlyList<SdkResolverManifest>? _resolversManifests; 84internal override IReadOnlyList<SdkResolverManifest> GetResolversManifests(ElementLocation location) 93protected internal override IReadOnlyList<SdkResolver> LoadResolversFromManifest(SdkResolverManifest manifest, ElementLocation location)
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (10)
75internal virtual IReadOnlyList<SdkResolverManifest> GetResolversManifests(ElementLocation location) 78IReadOnlyList<SdkResolverManifest> allResolversManifests = null; 105internal virtual IReadOnlyList<SdkResolverManifest> FindPotentialSdkResolversManifests(string rootFolder, ElementLocation location) 107List<SdkResolverManifest> manifestsList = new List<SdkResolverManifest>(); 176private bool TryAddAssemblyManifestFromXml(string pathToManifest, string manifestFolder, List<SdkResolverManifest> manifestsList, ElementLocation location) 183SdkResolverManifest manifest = null; 190manifest = SdkResolverManifest.Load(pathToManifest, manifestFolder); 213private bool TryAddAssemblyManifestFromDll(string assemblyPath, List<SdkResolverManifest> manifestsList) 255protected internal virtual IReadOnlyList<SdkResolver> LoadResolversFromManifest(SdkResolverManifest manifest, ElementLocation location)
BackEnd\Components\SdkResolution\SdkResolverManifest.cs (4)
63internal static SdkResolverManifest Load(string filePath, string manifestFolder) 80SdkResolverManifest manifest = ParseSdkResolverElement(reader, filePath); 102private static SdkResolverManifest ParseSdkResolverElement(XmlReader reader, string filePath) 104SdkResolverManifest manifest = new SdkResolverManifest();
BackEnd\Components\SdkResolution\SdkResolverService.cs (20)
46private Dictionary<SdkResolverManifest, IReadOnlyList<SdkResolver>> _manifestToResolvers; 51protected IReadOnlyList<SdkResolverManifest> _specificResolversManifestsRegistry; 56protected IReadOnlyList<SdkResolverManifest> _generalResolversManifestsRegistry; 178List<SdkResolverManifest> matchingResolversManifests = new(); 179foreach (SdkResolverManifest manifest in _specificResolversManifestsRegistry) 262private List<SdkResolver> GetResolvers(IReadOnlyList<SdkResolverManifest> resolversManifests, LoggingContext loggingContext, ElementLocation sdkReferenceLocation) 266foreach (var resolverManifest in resolversManifests) 395internal virtual IReadOnlyList<SdkResolverManifest> GetResolverManifests(ElementLocation location) => _sdkResolverLoader.GetResolversManifests(location); 413List<SdkResolverManifest> specificResolversManifestsRegistry = null; 414List<SdkResolverManifest> generalResolversManifestsRegistry = null; 419specificResolversManifestsRegistry = new List<SdkResolverManifest>(); 420generalResolversManifestsRegistry = new List<SdkResolverManifest>(); 421_manifestToResolvers = new Dictionary<SdkResolverManifest, IReadOnlyList<SdkResolver>>(); 423SdkResolverManifest sdkResolverManifest = new SdkResolverManifest(DisplayName: "TestResolversManifest", Path: null, ResolvableSdkRegex: null); 478IReadOnlyList<SdkResolverManifest> allResolversManifests = GetResolverManifests(location); 479_manifestToResolvers = new Dictionary<SdkResolverManifest, IReadOnlyList<SdkResolver>>(); 481SdkResolverManifest sdkDefaultResolversManifest = null; 495var specificResolversManifestsRegistry = new List<SdkResolverManifest>(); 496var generalResolversManifestsRegistry = new List<SdkResolverManifest>(); 501foreach (SdkResolverManifest manifest in allResolversManifests)
Microsoft.Build.Engine.UnitTests (10)
BackEnd\SdkResolverService_Tests.cs (10)
705internal IReadOnlyList<SdkResolverManifest> _fakeManifestRegistry; 714internal override IReadOnlyList<SdkResolverManifest> GetResolverManifests(ElementLocation location) 725List<SdkResolverManifest> manifests = new List<SdkResolverManifest>(); 728var man = new SdkResolverManifest(DisplayName: "TestResolversManifest", Path: null, ResolvableSdkRegex: new Regex("abc")); 789internal override IReadOnlyList<SdkResolverManifest> GetResolversManifests(ElementLocation location) 793var manifests = new List<SdkResolverManifest>(); 796SdkResolverManifest sdkResolverManifest = new SdkResolverManifest(resolver.Name, null, null); 801SdkResolverManifest sdkResolverManifest = new SdkResolverManifest( 810protected internal override IReadOnlyList<SdkResolver> LoadResolversFromManifest(SdkResolverManifest manifest, ElementLocation location)