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