Microsoft.Extensions.DependencyModel 10.0.0-preview.4.25258.110

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.

How to Use

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);
            }
        }
    }
}

Additional Documentation

Feedback & Contributing

Microsoft.Extensions.DependencyModel is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Showing the top 20 packages that depend on Microsoft.Extensions.DependencyModel.

Packages Downloads
Serilog.Settings.Configuration
Microsoft.Extensions.Configuration (appsettings.json) support for Serilog.
4,129
Microsoft.EntityFrameworkCore.Sqlite.Core
SQLite database provider for Entity Framework Core. This package does not include a copy of the native SQLite library.
3,901
Microsoft.EntityFrameworkCore.Design
Shared design-time components for Entity Framework Core tools.
575
Serilog.Settings.Configuration
Microsoft.Extensions.Configuration (appsettings.json) support for Serilog.
503
Microsoft.EntityFrameworkCore.Sqlite.Core
SQLite database provider for Entity Framework Core. This package does not include a copy of the native SQLite library.
500
Microsoft.EntityFrameworkCore.Sqlite.Core
SQLite database provider for Entity Framework Core. This package does not include a copy of the native SQLite library.
296
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
83
IKVM
Java SE 8 Virtual Machine for .NET
79
IKVM
Java SE 8 Virtual Machine for .NET
78
IKVM
Java SE 8 Virtual Machine for .NET
77
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
73
IKVM
Java SE 8 Virtual Machine for .NET
73
IKVM
Java SE 8 Virtual Machine for .NET
72
IKVM
Java SE 8 Virtual Machine for .NET
71
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
68
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.
68
IKVM
Java SE 8 Virtual Machine for .NET
68

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

.NET Framework 4.6.2

.NET Standard 2.0

.NET 10.0

  • No dependencies.

.NET 9.0

.NET 8.0

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