<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="11.0.0-preview.5.26302.115" />

Microsoft.Extensions.DependencyModel.DependencyContext

public class DependencyContext
Provides information about application dependencies.
public static DependencyContext Default { get; }

Gets the dependency context for the current application.

Gets the compilation options used to compile the application.

Gets the list of libraries used to compile the application.

Gets a runtime identifiers graph.

Gets the list of libraries used by the application at run time.

public TargetInfo Target { get; }

Gets information about the application's target runtime.

public DependencyContext(TargetInfo target, CompilationOptions compilationOptions, IEnumerable<CompilationLibrary> compileLibraries, IEnumerable<RuntimeLibrary> runtimeLibraries, IEnumerable<RuntimeFallbacks> runtimeGraph)

Initializes a new instance of the DependencyContext class.

public static DependencyContext Load(Assembly assembly)

Loads the dependency context for the specified assembly.

Merges the current dependency context with the specifed one.