Microsoft.Extensions.DependencyModel 8.0.0

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
.NET 6.0 .NET Standard 2.0 .NET Framework 4.6.2
dotnet add package Microsoft.Extensions.DependencyModel --version 8.0.0
NuGet\Install-Package Microsoft.Extensions.DependencyModel -Version 8.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="8.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.Extensions.DependencyModel --version 8.0.0
#r "nuget: Microsoft.Extensions.DependencyModel, 8.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Microsoft.Extensions.DependencyModel as a Cake Addin
#addin nuget:?package=Microsoft.Extensions.DependencyModel&version=8.0.0

// Install Microsoft.Extensions.DependencyModel as a Cake Tool
#tool nuget:?package=Microsoft.Extensions.DependencyModel&version=8.0.0

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.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (950)

Showing the top 5 NuGet packages that depend on Microsoft.Extensions.DependencyModel:

Package Downloads
Microsoft.AspNetCore.Mvc.Core The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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

Microsoft.EntityFrameworkCore.Design The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Shared design-time components for Entity Framework Core tools.

Serilog.Settings.Configuration The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Microsoft.Extensions.Configuration (appsettings.json) support for Serilog.

Microsoft.EntityFrameworkCore.Sqlite.Core The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

SQLite database provider for Entity Framework Core. This package does not include a copy of the native SQLite library.

Scrutor

Register services using assembly scanning and a fluent API.

GitHub repositories (157)

Showing the top 5 popular GitHub repositories that depend on Microsoft.Extensions.DependencyModel:

Repository Stars
dotnet/aspnetcore
ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
OpenRA/OpenRA
Open Source real-time strategy game engine for early Westwood games such as Command & Conquer: Red Alert written in C# using SDL and OpenGL. Runs on Windows, Linux, *BSD and Mac OS X.
dotnet/runtime
.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
dotnet/efcore
EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
dotnet/orleans
Cloud Native application framework for .NET
Version Downloads Last updated
8.0.0 759,990 11/14/2023
8.0.0-rc.2.23479.6 115,421 10/10/2023
8.0.0-rc.1.23419.4 78,422 9/12/2023
8.0.0-preview.7.23375.6 41,732 8/8/2023
8.0.0-preview.6.23329.7 62,197 7/11/2023
8.0.0-preview.5.23280.8 54,044 6/13/2023
8.0.0-preview.4.23259.5 96,080 5/16/2023
8.0.0-preview.3.23174.8 62,140 4/11/2023
8.0.0-preview.2.23128.3 40,080 3/14/2023
8.0.0-preview.1.23110.8 88,629 2/21/2023
7.0.0 55,294,035 11/7/2022
7.0.0-rc.2.22472.3 142,002 10/11/2022
7.0.0-rc.1.22426.10 76,772 9/14/2022
7.0.0-preview.7.22375.6 35,777 8/9/2022
7.0.0-preview.6.22324.4 19,256 7/12/2022
7.0.0-preview.5.22301.12 15,055 6/14/2022
7.0.0-preview.4.22229.4 13,128 5/10/2022
7.0.0-preview.3.22175.4 4,980 4/13/2022
7.0.0-preview.2.22152.2 6,452 3/14/2022
7.0.0-preview.1.22076.8 11,510 2/17/2022
6.0.2-mauipre.1.22102.15 2,479 2/15/2022
6.0.2-mauipre.1.22054.8 8,515 1/19/2022
6.0.0 101,714,035 11/8/2021
6.0.0-rc.2.21480.5 218,599 10/12/2021
6.0.0-rc.1.21451.13 195,240 9/14/2021
6.0.0-preview.7.21377.19 30,246 8/10/2021
6.0.0-preview.6.21352.12 13,422 7/14/2021
6.0.0-preview.5.21301.5 16,103 6/15/2021
6.0.0-preview.4.21253.7 13,573 5/24/2021
6.0.0-preview.3.21201.4 25,130 4/8/2021
6.0.0-preview.2.21154.6 15,979 3/11/2021
6.0.0-preview.1.21102.12 10,615 2/12/2021
5.0.0 55,351,980 11/9/2020
5.0.0-rc.2.20475.5 89,053 10/13/2020
5.0.0-rc.1.20451.14 49,525 9/14/2020
5.0.0-preview.3-runtime... 45,632 4/23/2020
5.0.0-preview.2-runtime... 10,994 4/2/2020
5.0.0-preview.8.20407.11 32,482 8/25/2020
5.0.0-preview.7.20364.11 14,053 7/21/2020
5.0.0-preview.6.20305.6 4,871 6/25/2020
5.0.0-preview.5.20278.1 1,153 6/10/2020
5.0.0-preview.4.20251.6 6,202 5/18/2020
5.0.0-preview.1.20120.5 2,304 3/16/2020
3.1.25 3,096,701 5/10/2022
3.1.6 73,394,313 7/14/2020
3.1.5 7,941,767 6/9/2020
3.1.4 5,085,775 5/12/2020
3.1.3 14,537,070 3/24/2020
3.1.2 6,385,956 2/18/2020
3.1.1 5,877,452 1/14/2020
3.1.0 11,216,459 12/3/2019
3.1.0-preview3.19553.2 14,074 11/13/2019
3.1.0-preview2.19525.6 10,098 11/1/2019
3.1.0-preview1.19506.1 5,709 10/15/2019
3.0.3 167,289 2/18/2020
3.0.2 81,427 1/14/2020
3.0.1 450,813 11/18/2019
3.0.0 130,993,399 9/23/2019
3.0.0-rc1-19456-20 18,871 9/16/2019
3.0.0-preview9-19423-09 29,385 9/4/2019
3.0.0-preview8-28405-07 49,360 8/13/2019
3.0.0-preview7-27912-14 35,220 7/23/2019
3.0.0-preview6-27804-01 40,448 6/12/2019
3.0.0-preview5-27626-15 15,055 5/6/2019
3.0.0-preview4-27615-11 9,423 4/18/2019
3.0.0-preview3-27503-5 79,787 3/6/2019
3.0.0-preview-27324-5 29,404 1/29/2019
2.1.0 304,482,086 5/29/2018
2.1.0-rc1 119,064 5/6/2018
2.1.0-preview2-26406-04 263,822 4/10/2018
2.1.0-preview1-26216-03 124,677 2/26/2018
2.0.4 178,907,120 12/12/2017
2.0.3 29,785,744 11/14/2017
2.0.0 83,978,827 8/11/2017
2.0.0-preview2-25407-01 106,895 6/27/2017
2.0.0-preview1-002111 65,919 5/9/2017
1.1.9 1,331,260 7/10/2018
1.1.2 30,421,657 5/9/2017
1.1.1 6,146,666 3/6/2017
1.1.0 22,463,065 11/16/2016
1.1.0-preview1-001100 92,078 10/24/2016
1.0.500-preview2-1-003177 104,529 11/16/2016
1.0.3 99,886,191 3/6/2017
1.0.1-beta-000933 79,000 1/27/2017
1.0.0 67,478,552 6/27/2016
1.0.0-rc2-final 379,934 5/16/2016
1.0.0-rc2-002702 1,305,753 5/16/2016