Microsoft.Extensions.DependencyModel 7.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
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Microsoft.Extensions.DependencyModel --version 7.0.0
NuGet\Install-Package Microsoft.Extensions.DependencyModel -Version 7.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="7.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 7.0.0
#r "nuget: Microsoft.Extensions.DependencyModel, 7.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=7.0.0

// Install Microsoft.Extensions.DependencyModel as a Cake Tool
#tool nuget:?package=Microsoft.Extensions.DependencyModel&version=7.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.

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);
            }
        }
    }
}
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (893)

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 (152)

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.
dotnet-architecture/eShopOnContainers
Cross-platform .NET sample microservices and container based application that runs on Linux Windows and macOS. Powered by .NET 7, Docker Containers and Azure Kubernetes Services. Supports Visual Studio, VS for Mac and CLI based environments with Docker CLI, dotnet CLI, VS Code or any other code editor.
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/efcore
EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
dotnet/runtime
.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
Version Downloads Last updated
8.0.0-preview.2.23128.3 11,188 3/14/2023
8.0.0-preview.1.23110.8 21,440 2/21/2023
7.0.0 8,409,264 11/7/2022
7.0.0-rc.2.22472.3 103,776 10/11/2022
7.0.0-rc.1.22426.10 55,136 9/14/2022
7.0.0-preview.7.22375.6 22,606 8/9/2022
7.0.0-preview.6.22324.4 12,417 7/12/2022
7.0.0-preview.5.22301.12 14,310 6/14/2022
7.0.0-preview.4.22229.4 11,011 5/10/2022
7.0.0-preview.3.22175.4 4,427 4/13/2022
7.0.0-preview.2.22152.2 5,303 3/14/2022
7.0.0-preview.1.22076.8 9,801 2/17/2022
6.0.2-mauipre.1.22102.15 1,238 2/15/2022
6.0.2-mauipre.1.22054.8 6,825 1/19/2022
6.0.0 56,089,840 11/8/2021
6.0.0-rc.2.21480.5 173,986 10/12/2021
6.0.0-rc.1.21451.13 180,869 9/14/2021
6.0.0-preview.7.21377.19 28,075 8/10/2021
6.0.0-preview.6.21352.12 12,899 7/14/2021
6.0.0-preview.5.21301.5 14,797 6/15/2021
6.0.0-preview.4.21253.7 13,280 5/24/2021
6.0.0-preview.3.21201.4 21,428 4/8/2021
6.0.0-preview.2.21154.6 15,461 3/11/2021
6.0.0-preview.1.21102.12 10,278 2/12/2021
5.0.0 41,882,804 11/9/2020
5.0.0-rc.2.20475.5 85,546 10/13/2020
5.0.0-rc.1.20451.14 46,201 9/14/2020
5.0.0-preview.3-runtime... 44,286 4/23/2020
5.0.0-preview.2-runtime... 10,840 4/2/2020
5.0.0-preview.8.20407.11 31,468 8/25/2020
5.0.0-preview.7.20364.11 13,772 7/21/2020
5.0.0-preview.6.20305.6 4,488 6/25/2020
5.0.0-preview.5.20278.1 1,066 6/10/2020
5.0.0-preview.4.20251.6 5,794 5/18/2020
5.0.0-preview.1.20120.5 2,172 3/16/2020
3.1.25 1,693,857 5/10/2022
3.1.6 56,179,526 7/14/2020
3.1.5 6,954,514 6/9/2020
3.1.4 4,642,577 5/12/2020
3.1.3 13,085,368 3/24/2020
3.1.2 5,559,998 2/18/2020
3.1.1 5,253,664 1/14/2020
3.1.0 9,953,679 12/3/2019
3.1.0-preview3.19553.2 13,082 11/13/2019
3.1.0-preview2.19525.6 9,957 11/1/2019
3.1.0-preview1.19506.1 5,520 10/15/2019
3.0.3 145,988 2/18/2020
3.0.2 74,327 1/14/2020
3.0.1 397,935 11/18/2019
3.0.0 78,439,207 9/23/2019
3.0.0-rc1-19456-20 18,342 9/16/2019
3.0.0-preview9-19423-09 25,219 9/4/2019
3.0.0-preview8-28405-07 46,828 8/13/2019
3.0.0-preview7-27912-14 34,319 7/23/2019
3.0.0-preview6-27804-01 37,137 6/12/2019
3.0.0-preview5-27626-15 14,102 5/6/2019
3.0.0-preview4-27615-11 8,318 4/18/2019
3.0.0-preview3-27503-5 78,166 3/6/2019
3.0.0-preview-27324-5 26,490 1/29/2019
2.1.0 221,241,543 5/29/2018
2.1.0-rc1 106,048 5/6/2018
2.1.0-preview2-26406-04 225,948 4/10/2018
2.1.0-preview1-26216-03 104,914 2/26/2018
2.0.4 154,272,005 12/12/2017
2.0.3 26,421,128 11/14/2017
2.0.0 77,566,566 8/11/2017
2.0.0-preview2-25407-01 96,911 6/27/2017
2.0.0-preview1-002111 61,050 5/9/2017
1.1.9 1,087,616 7/10/2018
1.1.2 23,679,228 5/9/2017
1.1.1 5,591,068 3/6/2017
1.1.0 17,656,552 11/16/2016
1.1.0-preview1-001100 78,608 10/24/2016
1.0.500-preview2-1-003177 94,520 11/16/2016
1.0.3 86,888,646 3/6/2017
1.0.1-beta-000933 71,933 1/27/2017
1.0.0 62,472,783 6/27/2016
1.0.0-rc2-final 357,567 5/16/2016
1.0.0-rc2-002702 1,302,299 5/16/2016