Microsoft.Extensions.DependencyModel 8.0.0-preview.4.23259.5
About
Provides abstractions for reading .deps
files. When a .NET application is compiled, the SDK generates a JSON manifest file (<ApplicationName>.deps.json
) that contains information about application dependencies. You can use Microsoft.Extensions.DependencyModel
to read information from this manifest at run time. This is useful when you want to dynamically compile code (for example, using Roslyn Emit API) referencing the same dependencies as your main application.
By default, the dependency manifest contains information about the application's target framework and runtime dependencies. Set the PreserveCompilationContext project property to true
to additionally include information about reference assemblies used during compilation.
For more information, see the documentation:
- .deps.json file format
- Microsoft.Extensions.DependencyModel namespace
- Microsoft.Extensions.DependencyModel.DependencyContext
Example
The following example shows how to display the list of assemblies used when compiling the current application. Include <PreserveCompilationContext>true</PreserveCompilationContext>
in your project file to run this example.
using System;
using Microsoft.Extensions.DependencyModel;
class Program
{
static void Main()
{
Console.WriteLine("Compilation libraries:");
Console.WriteLine();
foreach (CompilationLibrary lib in DependencyContext.Default.CompileLibraries)
{
foreach (string path in lib.ResolveReferencePaths())
{
Console.WriteLine(path);
}
}
}
}
Showing the top 20 packages that depend on Microsoft.Extensions.DependencyModel.
Packages | Downloads |
---|---|
Microsoft.EntityFrameworkCore.Design
Shared design-time components for Entity Framework Core tools.
|
282 |
Microsoft.EntityFrameworkCore.Sqlite.Core
SQLite database provider for Entity Framework Core. This package does not include a copy of the native SQLite library.
|
216 |
Microsoft.EntityFrameworkCore.Sqlite.Core
SQLite database provider for Entity Framework Core. This package does not include a copy of the native SQLite library.
|
159 |
Microsoft.EntityFrameworkCore.Sqlite.Core
SQLite database provider for Entity Framework Core. This package does not include a copy of the native SQLite library.
|
157 |
Microsoft.EntityFrameworkCore.Sqlite.Core
SQLite database provider for Entity Framework Core. This package does not include a copy of the native SQLite library.
|
142 |
Microsoft.EntityFrameworkCore.Design
Shared design-time components for Entity Framework Core tools.
|
137 |
Microsoft.EntityFrameworkCore.Design
Shared design-time components for Entity Framework Core tools.
|
129 |
Microsoft.EntityFrameworkCore.Sqlite.Core
SQLite database provider for Entity Framework Core. This package does not include a copy of the native SQLite library.
|
126 |
Microsoft.EntityFrameworkCore.Design
Shared design-time components for Entity Framework Core tools.
|
99 |
Microsoft.EntityFrameworkCore.Design
Shared design-time components for Entity Framework Core tools.
|
79 |
Microsoft.EntityFrameworkCore.Design
Shared design-time components for Entity Framework Core tools.
|
74 |
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
Runtime compilation support for Razor views and Razor Pages in ASP.NET Core MVC.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/88ec3bc3f37e76fbcc932a25f9f0c1c29fe2b343
|
73 |
Microsoft.EntityFrameworkCore.Sqlite.Core
SQLite database provider for Entity Framework Core. This package does not include a copy of the native SQLite library.
|
73 |
Microsoft.EntityFrameworkCore.Sqlite.Core
SQLite database provider for Entity Framework Core. This package does not include a copy of the native SQLite library.
|
69 |
Microsoft.EntityFrameworkCore.Design
Shared design-time components for Entity Framework Core tools.
|
63 |
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
Runtime compilation support for Razor views and Razor Pages in ASP.NET Core MVC.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/b8139c5ee58f1708b0e3368a1b241400edd6cbc4
|
62 |
Microsoft.EntityFrameworkCore.Sqlite.Core
SQLite database provider for Entity Framework Core. This package does not include a copy of the native SQLite library.
|
51 |
Microsoft.EntityFrameworkCore.Design
Shared design-time components for Entity Framework Core tools.
|
39 |
Microsoft.EntityFrameworkCore.Design
Shared design-time components for Entity Framework Core tools.
|
35 |
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
Runtime compilation support for Razor views and Razor Pages in ASP.NET Core MVC.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/c9e3996173cec136bc2e9f3b4ec45f2a323b1d63
|
31 |
.NET Framework 4.6.2
- System.Text.Encodings.Web (>= 8.0.0-preview.4.23259.5)
- System.Text.Json (>= 8.0.0-preview.4.23259.5)
- System.Buffers (>= 4.5.1)
- System.Memory (>= 4.5.5)
- System.Runtime.InteropServices.RuntimeInformation (>= 4.3.0)
.NET 6.0
- System.Text.Encodings.Web (>= 8.0.0-preview.4.23259.5)
- System.Text.Json (>= 8.0.0-preview.4.23259.5)
.NET 7.0
- System.Text.Encodings.Web (>= 8.0.0-preview.4.23259.5)
- System.Text.Json (>= 8.0.0-preview.4.23259.5)
.NET 8.0
- System.Text.Encodings.Web (>= 8.0.0-preview.4.23259.5)
- System.Text.Json (>= 8.0.0-preview.4.23259.5)
.NET Standard 2.0
- System.Text.Encodings.Web (>= 8.0.0-preview.4.23259.5)
- System.Text.Json (>= 8.0.0-preview.4.23259.5)
- System.Buffers (>= 4.5.1)
- System.Memory (>= 4.5.5)