4 instantiations of DependencyContext
installer.tasks (1)
GenerateTestSharedFrameworkDepsFile.cs (1)
78var dependencyContext = new DependencyContext(
Microsoft.DotNet.SharedFramework.Sdk (1)
src\GenerateSharedFrameworkDepsFile.cs (1)
107var context = new DependencyContext(target,
Microsoft.Extensions.DependencyModel (2)
DependencyContext.cs (1)
55return new DependencyContext(
DependencyContextJsonReader.cs (1)
206return new DependencyContext(
53 references to DependencyContext
dotnet-svcutil-lib (1)
Shared\MSBuildProj.cs (1)
889DependencyContext depContext = null;
installer.tasks (1)
GenerateTestSharedFrameworkDepsFile.cs (1)
78var dependencyContext = new DependencyContext(
Microsoft.AspNetCore.Analyzer.Testing (2)
DiagnosticProject.cs (1)
45foreach (var defaultCompileLibrary in DependencyContext.Load(testAssembly).CompileLibraries)
DiagnosticVerifier.cs (1)
165foreach (var defaultCompileLibrary in DependencyContext.Load(GetType().Assembly).CompileLibraries)
Microsoft.AspNetCore.Analyzers.Test (1)
src\Shared\AnalyzerTesting\TestReferences.cs (1)
24foreach (var defaultCompileLibrary in DependencyContext.Load(typeof(TestReferences).Assembly).CompileLibraries)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (2)
327var dependencyContext = DependencyContext.Load(typeof(RequestDelegateCreationTestBase).Assembly);
Microsoft.AspNetCore.Http.Microbenchmarks (2)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (2)
327var dependencyContext = DependencyContext.Load(typeof(RequestDelegateCreationTestBase).Assembly);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (4)
AssemblyPartExtensions.cs (2)
26var dependencyContext = DependencyContext.Load(assembly);
CSharpCompiler.cs (2)
94var dependencyContext = DependencyContext.Load(applicationAssembly);
Microsoft.AspNetCore.Mvc.Testing (2)
WebApplicationFactory.cs (2)
328var context = DependencyContext.Default;
Microsoft.DotNet.SharedFramework.Sdk (1)
src\GenerateSharedFrameworkDepsFile.cs (1)
107var context = new DependencyContext(target,
Microsoft.Extensions.DependencyModel (34)
DependencyContext.cs (6)
17private static readonly Lazy<DependencyContext?> _defaultContext = new(LoadDefault); 39public static DependencyContext? Default => _defaultContext.Value; 51public DependencyContext Merge(DependencyContext other) 65private static DependencyContext? LoadDefault() 77public static DependencyContext? Load(Assembly assembly)
DependencyContextExtensions.cs (14)
16public static IEnumerable<string> GetDefaultNativeAssets(this DependencyContext self) 23public static IEnumerable<RuntimeFile> GetDefaultNativeRuntimeFileAssets(this DependencyContext self) 30public static IEnumerable<string> GetRuntimeNativeAssets(this DependencyContext self, string runtimeIdentifier) 38public static IEnumerable<RuntimeFile> GetRuntimeNativeRuntimeFileAssets(this DependencyContext self, string runtimeIdentifier) 46public static IEnumerable<string> GetDefaultNativeAssets(this RuntimeLibrary self, DependencyContext context) 53public static IEnumerable<RuntimeFile> GetDefaultNativeRuntimeFileAssets(this RuntimeLibrary self, DependencyContext context) 60public static IEnumerable<string> GetRuntimeNativeAssets(this RuntimeLibrary self, DependencyContext context, string runtimeIdentifier) 69public static IEnumerable<RuntimeFile> GetRuntimeNativeRuntimeFileAssets(this RuntimeLibrary self, DependencyContext context, string runtimeIdentifier) 78public static IEnumerable<AssemblyName> GetDefaultAssemblyNames(this DependencyContext self) 85public static IEnumerable<AssemblyName> GetRuntimeAssemblyNames(this DependencyContext self, string runtimeIdentifier) 93public static IEnumerable<AssemblyName> GetDefaultAssemblyNames(this RuntimeLibrary self, DependencyContext context) 101public static IEnumerable<AssemblyName> GetRuntimeAssemblyNames(this RuntimeLibrary self, DependencyContext context, string runtimeIdentifier) 127DependencyContext context, 137DependencyContext context,
DependencyContextJsonReader.cs (2)
22public DependencyContext Read(Stream stream) 128private DependencyContext Read(Utf8JsonReader reader)
DependencyContextLoader.cs (6)
55public DependencyContext? Load(Assembly assembly) 59DependencyContext? context = null; 73DependencyContext? extraContext = LoadContext(reader, extraPath); 84private DependencyContext? LoadEntryAssemblyContext(IDependencyContextReader reader) 89private DependencyContext? LoadContext(IDependencyContextReader reader, string? location) 103private DependencyContext? LoadAssemblyContext(Assembly assembly, IDependencyContextReader reader)
DependencyContextWriter.cs (5)
16public void Write(DependencyContext context, Stream stream) 41private static void WriteRuntimeTargetInfo(DependencyContext context, Utf8JsonWriter jsonWriter) 59private static void WriteRuntimeGraph(DependencyContext context, Utf8JsonWriter jsonWriter) 116private static void WriteTargets(DependencyContext context, Utf8JsonWriter jsonWriter) 405private static void WriteLibraries(DependencyContext context, Utf8JsonWriter jsonWriter)
IDependencyContextReader.cs (1)
11DependencyContext Read(Stream stream);
Microsoft.ML.TestFrameworkCommon (2)
Utility\PathResolver.cs (2)
58DependencyContext defaultContext = DependencyContext.Default;
Mvc.Analyzers.Test (1)
src\Shared\AnalyzerTesting\TestReferences.cs (1)
24foreach (var defaultCompileLibrary in DependencyContext.Load(typeof(TestReferences).Assembly).CompileLibraries)