Microsoft.Extensions.DependencyModel 7.0.0-rc.1.22426.10

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:

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
Serilog.Settings.Configuration
Microsoft.Extensions.Configuration (appsettings.json) support for Serilog.
3,930
Microsoft.EntityFrameworkCore.Sqlite.Core
SQLite database provider for Entity Framework Core. This package does not include a copy of the native SQLite library.
3,700
Serilog.Settings.Configuration
Microsoft.Extensions.Configuration (appsettings.json) support for Serilog.
496
Microsoft.EntityFrameworkCore.Sqlite.Core
SQLite database provider for Entity Framework Core. This package does not include a copy of the native SQLite library.
491
Microsoft.EntityFrameworkCore.Design
Shared design-time components for Entity Framework Core tools.
368
Microsoft.EntityFrameworkCore.Sqlite.Core
SQLite database provider for Entity Framework Core. This package does not include a copy of the native SQLite library.
289
Microsoft.AspNetCore.Mvc.Core
ASP.NET Core MVC core components. Contains common action result types, attribute routing, application model conventions, API explorer, application parts, filters, formatters, model binding, and more. Commonly used types: Microsoft.AspNetCore.Mvc.AreaAttribute Microsoft.AspNetCore.Mvc.BindAttribute Microsoft.AspNetCore.Mvc.ControllerBase Microsoft.AspNetCore.Mvc.FromBodyAttribute Microsoft.AspNetCore.Mvc.FromFormAttribute Microsoft.AspNetCore.Mvc.RequireHttpsAttribute Microsoft.AspNetCore.Mvc.RouteAttribute This package was built from the source code at https://github.com/aspnet/AspNetCore/tree/33c2d01092d9a1b7a583fe99a50b15686e2b7de9
75
IKVM
Java SE 8 Virtual Machine for .NET
68
IKVM
Java SE 8 Virtual Machine for .NET
66
IKVM
Java SE 8 Virtual Machine for .NET
65
Microsoft.AspNetCore.Mvc.Core
ASP.NET Core MVC core components. Contains common action result types, attribute routing, application model conventions, API explorer, application parts, filters, formatters, model binding, and more. Commonly used types: Microsoft.AspNetCore.Mvc.AreaAttribute Microsoft.AspNetCore.Mvc.BindAttribute Microsoft.AspNetCore.Mvc.ControllerBase Microsoft.AspNetCore.Mvc.FromBodyAttribute Microsoft.AspNetCore.Mvc.FromFormAttribute Microsoft.AspNetCore.Mvc.RequireHttpsAttribute Microsoft.AspNetCore.Mvc.RouteAttribute
64
IKVM
Java SE 8 Virtual Machine for .NET
64
FluentAssertions
A very extensive set of extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style unit tests. Targets .NET Framework 4.5 and 4.7, as well as .NET Core 2.0, .NET Core 3.0, .NET Core 2.1, .NET Standard 1.3, 1.6, 2.0 and 2.1. Supports the unit test frameworks MSTest, MSTest2, Gallio, NUnit, XUnit, MBUnit, MSpec, and NSpec.
63
FakeItEasy
It's faking amazing! The easy mocking framework for .NET that works great in C# and VB.NET alike. No need to know the difference between a stub, a mock or a spy, everything's a fake! The easy to use, refactoring friendly API makes faking a breeze.
63
IKVM
Java SE 8 Virtual Machine for .NET
63
Microsoft.AspNetCore.Mvc.Testing
Support for writing functional tests for MVC applications. This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/ae1a6cbe225b99c0bf38b7e31bf60cb653b73a52
61
Microsoft.AspNetCore.Mvc.Core
ASP.NET Core MVC core components. Contains common action result types, attribute routing, application model conventions, API explorer, application parts, filters, formatters, model binding, and more. Commonly used types: Microsoft.AspNetCore.Mvc.AreaAttribute Microsoft.AspNetCore.Mvc.BindAttribute Microsoft.AspNetCore.Mvc.ControllerBase Microsoft.AspNetCore.Mvc.FromBodyAttribute Microsoft.AspNetCore.Mvc.FromFormAttribute Microsoft.AspNetCore.Mvc.RequireHttpsAttribute Microsoft.AspNetCore.Mvc.RouteAttribute
61
IKVM
Java SE 8 Virtual Machine for .NET
60
AutoMapper.Extensions.Microsoft.DependencyInjection
AutoMapper extensions for ASP.NET Core
59

https://go.microsoft.com/fwlink/?LinkID=799421

.NET Framework 4.6.2

.NET Standard 2.0

.NET 7.0

.NET 6.0

Version Downloads Last updated
10.0.0-preview.3.25171.5 6 04/13/2025
10.0.0-preview.2.25163.2 10 03/22/2025
10.0.0-preview.1.25080.5 8 02/25/2025
9.0.4 4 04/14/2025
9.0.3 8 03/14/2025
9.0.2 11 02/16/2025
9.0.1 12 01/20/2025
9.0.0 24 11/13/2024
9.0.0-rc.2.24473.5 18 10/16/2024
9.0.0-rc.1.24431.7 25 09/16/2024
9.0.0-preview.7.24405.7 23 08/14/2024
9.0.0-preview.6.24327.7 28 07/12/2024
9.0.0-preview.5.24306.7 29 06/11/2024
9.0.0-preview.4.24266.19 23 05/23/2024
9.0.0-preview.3.24172.9 28 04/12/2024
9.0.0-preview.2.24128.5 25 03/16/2024
9.0.0-preview.1.24080.9 27 02/22/2024
8.0.2 38 10/16/2024
8.0.1 29 07/12/2024
8.0.0 3,939 11/21/2023
8.0.0-rc.2.23479.6 40 10/10/2023
8.0.0-rc.1.23419.4 37 09/14/2023
8.0.0-preview.7.23375.6 36 08/29/2023
8.0.0-preview.6.23329.7 46 07/11/2023
8.0.0-preview.5.23280.8 43 06/20/2023
8.0.0-preview.4.23259.5 51 05/24/2023
8.0.0-preview.3.23174.8 39 07/02/2023
8.0.0-preview.2.23128.3 495 04/03/2023
8.0.0-preview.1.23110.8 58 05/24/2023
7.0.0 518 11/09/2022
7.0.0-rc.2.22472.3 40 07/12/2023
7.0.0-rc.1.22426.10 39 10/05/2022
7.0.0-preview.7.22375.6 35 08/10/2022
7.0.0-preview.6.22324.4 26 07/07/2023
7.0.0-preview.5.22301.12 32 06/20/2023
7.0.0-preview.4.22229.4 43 05/27/2022
7.0.0-preview.3.22175.4 51 05/17/2022
7.0.0-preview.2.22152.2 44 10/04/2022
7.0.0-preview.1.22076.8 40 03/06/2022
6.0.2 16 11/13/2024
6.0.2-mauipre.1.22102.15 32 07/11/2023
6.0.2-mauipre.1.22054.8 32 06/20/2023
6.0.1 34 10/16/2024
6.0.0 49 11/10/2021
6.0.0-rc.2.21480.5 31 07/03/2023
6.0.0-rc.1.21451.13 32 07/14/2023
6.0.0-preview.7.21377.19 39 07/09/2023
6.0.0-preview.6.21352.12 44 07/03/2023
6.0.0-preview.5.21301.5 48 06/11/2023
6.0.0-preview.4.21253.7 32 04/27/2023
6.0.0-preview.3.21201.4 35 07/03/2023
6.0.0-preview.2.21154.6 49 07/06/2023
6.0.0-preview.1.21102.12 45 06/29/2022
5.0.0 49 02/01/2021
5.0.0-rc.2.20475.5 46 06/28/2022
5.0.0-rc.1.20451.14 49 06/03/2022
5.0.0-preview.3-runtime.20214.6 41 07/10/2023
5.0.0-preview.2-runtime.20160.6 40 10/25/2022
5.0.0-preview.8.20407.11 29 06/20/2023
5.0.0-preview.7.20364.11 37 07/02/2023
5.0.0-preview.6.20305.6 41 05/11/2022
5.0.0-preview.5.20278.1 42 11/23/2022
5.0.0-preview.4.20251.6 45 10/18/2022
5.0.0-preview.1.20120.5 32 10/29/2022
3.1.25 37 05/11/2022
3.1.6 37 10/27/2022
3.1.5 34 03/17/2023
3.1.4 43 05/30/2022
3.1.3 40 11/09/2020
3.1.2 42 04/13/2023
3.1.1 42 06/17/2022
3.1.0 30 03/26/2023
3.1.0-preview3.19553.2 39 06/15/2022
3.1.0-preview2.19525.6 31 06/18/2022
3.1.0-preview1.19506.1 44 05/10/2022
3.0.3 37 10/31/2022
3.0.2 38 06/30/2022
3.0.1 34 03/29/2023
3.0.0 32 04/13/2023
3.0.0-rc1-19456-20 37 07/08/2023
3.0.0-preview9-19423-09 37 01/06/2023
3.0.0-preview8-28405-07 34 08/04/2022
3.0.0-preview7-27912-14 28 11/04/2022
3.0.0-preview6-27804-01 37 05/17/2023
3.0.0-preview5-27626-15 24 07/14/2023
3.0.0-preview4-27615-11 34 05/26/2023
3.0.0-preview3-27503-5 38 07/10/2023
3.0.0-preview-27324-5 46 07/01/2023
2.1.0 56 06/07/2022
2.1.0-rc1 46 07/03/2023
2.1.0-preview2-26406-04 45 05/15/2023
2.1.0-preview1-26216-03 45 06/04/2022
2.0.4 43 06/11/2022
2.0.3 34 01/20/2023
2.0.0 39 11/22/2021
2.0.0-preview2-25407-01 48 05/30/2022
2.0.0-preview1-002111 41 07/09/2023
1.1.9 40 09/23/2022
1.1.2 35 05/10/2023
1.1.1 42 12/02/2022
1.1.0 34 02/17/2023
1.1.0-preview1-001100 46 10/10/2022
1.0.500-preview2-1-003177 34 05/21/2023
1.0.3 35 05/16/2023
1.0.1-beta-000933 46 05/17/2023
1.0.0 43 06/11/2022
1.0.0-rc2-final 45 03/07/2023
1.0.0-rc2-002702 43 05/15/2022