2 types derived from Library
Microsoft.Extensions.DependencyModel (2)
CompilationLibrary.cs (1)
11
public class CompilationLibrary :
Library
RuntimeLibrary.cs (1)
10
public class RuntimeLibrary :
Library
17 references to Library
Microsoft.Extensions.DependencyModel (17)
CollectionExtensions.netcoreapp.cs (1)
11
internal static Dictionary<string, T> LibraryCollectionToDictionary<T>(this IReadOnlyList<T> collection) where T :
Library
DependencyContext.cs (1)
82
private sealed class LibraryMergeEqualityComparer<T> : IEqualityComparer<T> where T :
Library
DependencyContextJsonReader.cs (5)
738
private IEnumerable<
Library
> CreateLibraries(IEnumerable<TargetLibrary>? libraries, bool runtime, Dictionary<string, LibraryStub>? libraryStubs)
742
return Enumerable.Empty<
Library
>();
747
IEnumerable<
Library
> CreateLibrariesNotNull(IEnumerable<TargetLibrary> libraries, bool runtime, Dictionary<string, LibraryStub>? libraryStubs)
751
Library
? createdLibrary = CreateLibrary(library, runtime, libraryStubs);
758
private
Library
? CreateLibrary(TargetLibrary targetLibrary, bool runtime, Dictionary<string, LibraryStub>? libraryStubs)
DependencyContextWriter.cs (10)
132
private static void WriteTarget(string key, IReadOnlyList<
Library
> libraries, Utf8JsonWriter jsonWriter)
138
Library
library = libraries[i];
168
Library
library = (
Library
?)compilationLibrary ?? (
Library
)runtimeLibrary!;
230
private static void WriteTargetLibrary(string key,
Library
library, Utf8JsonWriter jsonWriter)
407
IEnumerable<IGrouping<string,
Library
>> allLibraries =
408
context.RuntimeLibraries.Cast<
Library
>().Concat(context.CompileLibraries)
412
foreach (IGrouping<string,
Library
> libraryGroup in allLibraries)
419
private static void WriteLibrary(string key,
Library
library, Utf8JsonWriter jsonWriter)