Microsoft.Extensions.DependencyModel 10.0.0-preview.7.25380.108

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
Aspose.PDF
Aspose.PDF for .NET is a PDF document creation and manipulation component that enables your .NET applications to read, write and manipulate existing PDF documents without using Adobe Acrobat. It also allows you to create forms and manage form fields embedded in a PDF document. This component is written in managed C# and it allows developers to add PDF creation and manipulation functionality to their Microsoft .NET applications (WinForms, ASP.NET and .NET Compact Framework). Aspose.PDF for .NET is affordable and offers an incredible wealth of features including PDF compression options; table creation and manipulation; support for graph objects; extensive hyperlink functionality; extended security controls; custom font handling; integration with data sources; add or remove bookmarks; create table of contents; add, update, delete attachments and annotations; import or export PDF form data; add, replace or remove text and images; split, concatenate, extract or insert pages; transform pages to image; print PDF documents and much more.
330
Aspose.PDF
Aspose.PDF for .NET is a PDF document creation and manipulation component that enables your .NET applications to read, write and manipulate existing PDF documents without using Adobe Acrobat. It also allows you to create forms and manage form fields embedded in a PDF document. This component is written in managed C# and it allows developers to add PDF creation and manipulation functionality to their Microsoft .NET applications (WinForms, ASP.NET and .NET Compact Framework). Aspose.PDF for .NET is affordable and offers an incredible wealth of features including PDF compression options; table creation and manipulation; support for graph objects; extensive hyperlink functionality; extended security controls; custom font handling; integration with data sources; add or remove bookmarks; create table of contents; add, update, delete attachments and annotations; import or export PDF form data; add, replace or remove text and images; split, concatenate, extract or insert pages; transform pages to image; print PDF documents and much more.
843
Aspose.PDF
Aspose.PDF for .NET is a PDF document creation and manipulation component that enables your .NET applications to read, write and manipulate existing PDF documents without using Adobe Acrobat. It also allows you to create forms and manage form fields embedded in a PDF document. This component is written in managed C# and it allows developers to add PDF creation and manipulation functionality to their Microsoft .NET applications (WinForms, ASP.NET and .NET Compact Framework). Aspose.PDF for .NET is affordable and offers an incredible wealth of features including PDF compression options; table creation and manipulation; support for graph objects; extensive hyperlink functionality; extended security controls; custom font handling; integration with data sources; add or remove bookmarks; create table of contents; add, update, delete attachments and annotations; import or export PDF form data; add, replace or remove text and images; split, concatenate, extract or inset pages; transform pages to image; print PDF documents and much more.
237
Aspose.PDF
Aspose.PDF for .NET is a PDF document creation and manipulation component that enables your .NET applications to read, write and manipulate existing PDF documents without using Adobe Acrobat. It also allows you to create forms and manage form fields embedded in a PDF document. This component is written in managed C# and it allows developers to add PDF creation and manipulation functionality to their Microsoft .NET applications (WinForms, ASP.NET and .NET Compact Framework). Aspose.PDF for .NET is affordable and offers an incredible wealth of features including PDF compression options; table creation and manipulation; support for graph objects; extensive hyperlink functionality; extended security controls; custom font handling; integration with data sources; add or remove bookmarks; create table of contents; add, update, delete attachments and annotations; import or export PDF form data; add, replace or remove text and images; split, concatenate, extract or inset pages; transform pages to image; print PDF documents and much more.
363
Aspose.PDF
Aspose.PDF for .NET is a PDF document creation and manipulation component that enables your .NET applications to read, write and manipulate existing PDF documents without using Adobe Acrobat. It also allows you to create forms and manage form fields embedded in a PDF document. This component is written in managed C# and it allows developers to add PDF creation and manipulation functionality to their Microsoft .NET applications (WinForms, ASP.NET and .NET Compact Framework). Aspose.PDF for .NET is affordable and offers an incredible wealth of features including PDF compression options; table creation and manipulation; support for graph objects; extensive hyperlink functionality; extended security controls; custom font handling; integration with data sources; add or remove bookmarks; create table of contents; add, update, delete attachments and annotations; import or export PDF form data; add, replace or remove text and images; split, concatenate, extract or inset pages; transform pages to image; print PDF documents and much more.
630
Aspose.PDF
Aspose.PDF for .NET is a PDF document creation and manipulation component that enables your .NET applications to read, write and manipulate existing PDF documents without using Adobe Acrobat. It also allows you to create forms and manage form fields embedded in a PDF document. This component is written in managed C# and it allows developers to add PDF creation and manipulation functionality to their Microsoft .NET applications (WinForms, ASP.NET and .NET Compact Framework). Aspose.PDF for .NET is affordable and offers an incredible wealth of features including PDF compression options; table creation and manipulation; support for graph objects; extensive hyperlink functionality; extended security controls; custom font handling; integration with data sources; add or remove bookmarks; create table of contents; add, update, delete attachments and annotations; import or export PDF form data; add, replace or remove text and images; split, concatenate, extract or inset pages; transform pages to image; print PDF documents and much more.
745
Aspose.PDF
Aspose.PDF for .NET is a PDF document creation and manipulation component that enables your .NET applications to read, write and manipulate existing PDF documents without using Adobe Acrobat. It also allows you to create forms and manage form fields embedded in a PDF document. This component is written in managed C# and it allows developers to add PDF creation and manipulation functionality to their Microsoft .NET applications (WinForms, ASP.NET and .NET Compact Framework). Aspose.PDF for .NET is affordable and offers an incredible wealth of features including PDF compression options; table creation and manipulation; support for graph objects; extensive hyperlink functionality; extended security controls; custom font handling; integration with data sources; add or remove bookmarks; create table of contents; add, update, delete attachments and annotations; import or export PDF form data; add, replace or remove text and images; split, concatenate, extract or inset pages; transform pages to image; print PDF documents and much more.
1,135
Aspose.PDF
Aspose.PDF for .NET is a PDF document creation and manipulation component that enables your .NET applications to read, write and manipulate existing PDF documents without using Adobe Acrobat. It also allows you to create forms and manage form fields embedded in a PDF document. This component is written in managed C# and it allows developers to add PDF creation and manipulation functionality to their Microsoft .NET applications (WinForms, ASP.NET and .NET Compact Framework). Aspose.PDF for .NET is affordable and offers an incredible wealth of features including PDF compression options; table creation and manipulation; support for graph objects; extensive hyperlink functionality; extended security controls; custom font handling; integration with data sources; add or remove bookmarks; create table of contents; add, update, delete attachments and annotations; import or export PDF form data; add, replace or remove text and images; split, concatenate, extract or inset pages; transform pages to image; print PDF documents and much more.
1,322
Aspose.PDF
Aspose.PDF for .NET is a PDF document creation and manipulation component that enables your .NET applications to read, write and manipulate existing PDF documents without using Adobe Acrobat. It also allows you to create forms and manage form fields embedded in a PDF document. This component is written in managed C# and it allows developers to add PDF creation and manipulation functionality to their Microsoft .NET applications (WinForms, ASP.NET and .NET Compact Framework). Aspose.PDF for .NET is affordable and offers an incredible wealth of features including PDF compression options; table creation and manipulation; support for graph objects; extensive hyperlink functionality; extended security controls; custom font handling; integration with data sources; add or remove bookmarks; create table of contents; add, update, delete attachments and annotations; import or export PDF form data; add, replace or remove text and images; split, concatenate, extract or inset pages; transform pages to image; print PDF documents and much more.
1,342
Aspose.PDF
Aspose.PDF for .NET is a PDF document creation and manipulation component that enables your .NET applications to read, write and manipulate existing PDF documents without using Adobe Acrobat. It also allows you to create forms and manage form fields embedded in a PDF document. This component is written in managed C# and it allows developers to add PDF creation and manipulation functionality to their Microsoft .NET applications (WinForms, ASP.NET and .NET Compact Framework). Aspose.PDF for .NET is affordable and offers an incredible wealth of features including PDF compression options; table creation and manipulation; support for graph objects; extensive hyperlink functionality; extended security controls; custom font handling; integration with data sources; add or remove bookmarks; create table of contents; add, update, delete attachments and annotations; import or export PDF form data; add, replace or remove text and images; split, concatenate, extract or inset pages; transform pages to image; print PDF documents and much more.
2,140
Aspose.PDF
Aspose.PDF for .NET is a PDF document creation and manipulation component that enables your .NET applications to read, write and manipulate existing PDF documents without using Adobe Acrobat. It also allows you to create forms and manage form fields embedded in a PDF document. This component is written in managed C# and it allows developers to add PDF creation and manipulation functionality to their Microsoft .NET applications (WinForms, ASP.NET and .NET Compact Framework). Aspose.PDF for .NET is affordable and offers an incredible wealth of features including PDF compression options; table creation and manipulation; support for graph objects; extensive hyperlink functionality; extended security controls; custom font handling; integration with data sources; add or remove bookmarks; create table of contents; add, update, delete attachments and annotations; import or export PDF form data; add, replace or remove text and images; split, concatenate, extract or inset pages; transform pages to image; print PDF documents and much more.
2,590
Aspose.PDF
Aspose.PDF for .NET is a PDF document creation and manipulation component that enables your .NET applications to read, write and manipulate existing PDF documents without using Adobe Acrobat. It also allows you to create forms and manage form fields embedded in a PDF document. This component is written in managed C# and it allows developers to add PDF creation and manipulation functionality to their Microsoft .NET applications (WinForms, ASP.NET and .NET Compact Framework). Aspose.PDF for .NET is affordable and offers an incredible wealth of features including PDF compression options; table creation and manipulation; support for graph objects; extensive hyperlink functionality; extended security controls; custom font handling; integration with data sources; add or remove bookmarks; create table of contents; add, update, delete attachments and annotations; import or export PDF form data; add, replace or remove text and images; split, concatenate, extract or inset pages; transform pages to image; print PDF documents and much more.
3,926
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
121
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/aspnet/AspNetCore/tree/d12868dd7c10ff0433c16b06d3b59d03c40d987a
166
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/6a01dd1e69c8b9bd1ae005ea465ef2bcd26294bf
370
Scrutor
Register services using assembly scanning and a fluent API.
200
Scrutor
Register services using assembly scanning and a fluent API.
252
Scrutor
Register services using assembly scanning and a fluent API.
791
Serilog.Settings.Configuration
Microsoft.Extensions.Configuration (appsettings.json) support for Serilog.
310
Serilog.Settings.Configuration
Microsoft.Extensions.Configuration (appsettings.json) support for Serilog.
939

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.7.25380.108 2 08/14/2025
10.0.0-preview.6.25358.103 3 07/18/2025
10.0.0-preview.5.25277.114 12 06/08/2025
10.0.0-preview.4.25258.110 12 05/15/2025
10.0.0-preview.3.25171.5 15 04/17/2025
10.0.0-preview.2.25163.2 14 04/17/2025
10.0.0-preview.1.25080.5 17 02/27/2025
9.0.8 1 08/17/2025
9.0.7 2 07/18/2025
9.0.6 12 06/12/2025
9.0.5 12 05/16/2025
9.0.4 16 04/16/2025
9.0.3 16 03/14/2025
9.0.2 16 03/04/2025
9.0.1 18 01/21/2025
9.0.0 21 11/15/2024
9.0.0-rc.2.24473.5 19 10/13/2024
9.0.0-rc.1.24431.7 19 09/13/2024
9.0.0-preview.7.24405.7 25 08/13/2024
9.0.0-preview.6.24327.7 19 07/14/2024
9.0.0-preview.5.24306.7 19 06/25/2024
9.0.0-preview.4.24266.19 19 05/24/2024
9.0.0-preview.3.24172.9 18 04/13/2024
9.0.0-preview.2.24128.5 26 03/15/2024
9.0.0-preview.1.24080.9 23 02/15/2024
8.0.2 20 10/12/2024
8.0.1 20 07/13/2024
8.0.0 31 11/16/2023
8.0.0-rc.2.23479.6 21 12/22/2023
8.0.0-rc.1.23419.4 28 02/09/2024
8.0.0-preview.7.23375.6 29 12/19/2023
8.0.0-preview.6.23329.7 29 02/09/2024
8.0.0-preview.5.23280.8 22 02/09/2024
8.0.0-preview.4.23259.5 28 02/09/2024
8.0.0-preview.3.23174.8 24 02/09/2024
8.0.0-preview.2.23128.3 23 02/09/2024
8.0.0-preview.1.23110.8 24 02/09/2024
7.0.0 25 12/06/2022
7.0.0-rc.2.22472.3 22 02/09/2024
7.0.0-rc.1.22426.10 28 12/14/2023
7.0.0-preview.7.22375.6 27 02/09/2024
7.0.0-preview.6.22324.4 23 02/09/2024
7.0.0-preview.5.22301.12 23 02/09/2024
7.0.0-preview.4.22229.4 21 02/09/2024
7.0.0-preview.3.22175.4 25 02/09/2024
7.0.0-preview.2.22152.2 23 02/09/2024
7.0.0-preview.1.22076.8 24 02/09/2024
6.0.2 20 11/15/2024
6.0.2-mauipre.1.22102.15 24 02/09/2024
6.0.2-mauipre.1.22054.8 25 02/09/2024
6.0.1 20 10/19/2024
6.0.0 440 12/01/2021
6.0.0-rc.2.21480.5 23 02/09/2024
6.0.0-rc.1.21451.13 26 02/09/2024
6.0.0-preview.7.21377.19 23 02/09/2024
6.0.0-preview.6.21352.12 19 02/09/2024
6.0.0-preview.5.21301.5 27 12/20/2023
6.0.0-preview.4.21253.7 24 12/02/2023
6.0.0-preview.3.21201.4 20 02/09/2024
6.0.0-preview.2.21154.6 20 02/09/2024
6.0.0-preview.1.21102.12 25 02/09/2024
5.0.0 108 11/12/2020
5.0.0-rc.2.20475.5 23 02/09/2024
5.0.0-rc.1.20451.14 21 01/19/2024
5.0.0-preview.3-runtime.20214.6 22 12/23/2023
5.0.0-preview.2-runtime.20160.6 25 02/09/2024
5.0.0-preview.8.20407.11 19 02/09/2024
5.0.0-preview.7.20364.11 44 02/09/2024
5.0.0-preview.6.20305.6 27 02/09/2024
5.0.0-preview.5.20278.1 27 02/09/2024
5.0.0-preview.4.20251.6 25 02/09/2024
5.0.0-preview.1.20120.5 25 02/09/2024
3.1.25 29 03/31/2023
3.1.6 920 07/29/2020
3.1.5 43 06/09/2020
3.1.4 24 02/09/2024
3.1.3 24 12/14/2023
3.1.2 28 12/20/2023
3.1.1 25 03/11/2020
3.1.0 27 01/12/2021
3.1.0-preview3.19553.2 29 02/09/2024
3.1.0-preview2.19525.6 17 02/09/2024
3.1.0-preview1.19506.1 26 02/09/2024
3.0.3 24 12/25/2023
3.0.2 28 12/02/2023
3.0.1 26 12/14/2023
3.0.0 1,207 11/30/2020
3.0.0-rc1-19456-20 30 02/09/2024
3.0.0-preview9-19423-09 18 12/22/2023
3.0.0-preview8-28405-07 22 12/21/2023
3.0.0-preview7-27912-14 20 12/07/2023
3.0.0-preview6-27804-01 24 02/09/2024
3.0.0-preview5-27626-15 20 02/09/2024
3.0.0-preview4-27615-11 27 02/09/2024
3.0.0-preview3-27503-5 23 12/24/2023
3.0.0-preview-27324-5 29 02/09/2024
2.1.0 406 07/04/2020
2.1.0-rc1 27 12/08/2023
2.1.0-preview2-26406-04 19 02/09/2024
2.1.0-preview1-26216-03 21 02/09/2024
2.0.4 2,947 02/10/2020
2.0.3 24 01/28/2024
2.0.0 75 02/10/2020
2.0.0-preview2-25407-01 27 12/28/2023
2.0.0-preview1-002111 25 01/19/2024
1.1.9 282 12/21/2020
1.1.2 25 02/10/2020
1.1.1 21 02/09/2024
1.1.0 22 02/09/2024
1.1.0-preview1-001100 25 12/12/2023
1.0.500-preview2-1-003177 22 02/09/2024
1.0.3 24 02/09/2024
1.0.1-beta-000933 24 02/09/2024
1.0.0 27 02/27/2020
1.0.0-rc2-final 27 12/14/2023
1.0.0-rc2-002702 25 02/09/2024