Microsoft.Extensions.DependencyModel
10.0.0-preview.2.25163.2
Prefix Reserved
See the version list below for details.
dotnet add package Microsoft.Extensions.DependencyModel --version 10.0.0-preview.2.25163.2
NuGet\Install-Package Microsoft.Extensions.DependencyModel -Version 10.0.0-preview.2.25163.2
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="10.0.0-preview.2.25163.2" />
<PackageVersion Include="Microsoft.Extensions.DependencyModel" Version="10.0.0-preview.2.25163.2" />
<PackageReference Include="Microsoft.Extensions.DependencyModel" />
paket add Microsoft.Extensions.DependencyModel --version 10.0.0-preview.2.25163.2
#r "nuget: Microsoft.Extensions.DependencyModel, 10.0.0-preview.2.25163.2"
#addin nuget:?package=Microsoft.Extensions.DependencyModel&version=10.0.0-preview.2.25163.2&prerelease
#tool nuget:?package=Microsoft.Extensions.DependencyModel&version=10.0.0-preview.2.25163.2&prerelease
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
- .deps.json file format
- Microsoft.Extensions.DependencyModel namespace
- Microsoft.Extensions.DependencyModel.DependencyContext
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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 was computed. 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-browser 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. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. |
.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. |
-
.NETFramework 4.6.2
- System.Buffers (>= 4.6.0)
- System.Memory (>= 4.6.0)
- System.Text.Encodings.Web (>= 10.0.0-preview.2.25163.2)
- System.Text.Json (>= 10.0.0-preview.2.25163.2)
-
.NETStandard 2.0
- System.Buffers (>= 4.6.0)
- System.Memory (>= 4.6.0)
- System.Text.Encodings.Web (>= 10.0.0-preview.2.25163.2)
- System.Text.Json (>= 10.0.0-preview.2.25163.2)
-
net10.0
- No dependencies.
-
net8.0
- System.Text.Encodings.Web (>= 10.0.0-preview.2.25163.2)
- System.Text.Json (>= 10.0.0-preview.2.25163.2)
-
net9.0
- System.Text.Encodings.Web (>= 10.0.0-preview.2.25163.2)
- System.Text.Json (>= 10.0.0-preview.2.25163.2)
NuGet packages (1.3K)
Showing the top 5 NuGet packages that depend on Microsoft.Extensions.DependencyModel:
Package | Downloads |
---|---|
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 |
|
Microsoft.EntityFrameworkCore.Design
Shared design-time components for Entity Framework Core tools. |
|
Serilog.Settings.Configuration
Microsoft.Extensions.Configuration (appsettings.json) support for Serilog. |
|
Microsoft.EntityFrameworkCore.Sqlite.Core
SQLite database provider for Entity Framework Core. This package does not include a copy of the native SQLite library. |
|
Microsoft.VisualStudio.Web.CodeGenerators.Mvc
Code Generators for ASP.NET Core MVC. Contains code generators for MVC Controllers and Views. |
GitHub repositories (173)
Showing the top 20 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/runtime
.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
|
|
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/orleans
Cloud Native application framework for .NET
|
|
mRemoteNG/mRemoteNG
mRemoteNG is the next generation of mRemote, open source, tabbed, multi-protocol, remote connections manager.
|
|
dotnet/machinelearning
ML.NET is an open source and cross-platform machine learning framework for .NET.
|
|
NancyFx/Nancy
Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono
|
|
RicoSuter/NSwag
The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
|
|
stride3d/stride
Stride (formerly Xenko), a free and open-source cross-platform C# game engine.
|
|
aspnet/Mvc
[Archived] ASP.NET Core MVC is a model view controller framework for building dynamic web sites with clean separation of concerns, including the merged MVC, Web API, and Web Pages w/ Razor. Project moved to https://github.com/aspnet/AspNetCore
|
|
MapsterMapper/Mapster
A fast, fun and stimulating object to object Mapper
|
|
dotnet/Silk.NET
The high-speed OpenGL, OpenCL, OpenAL, OpenXR, GLFW, SDL, Vulkan, Assimp, WebGPU, and DirectX bindings library your mother warned you about.
|
|
cq-panda/Vue.NetCore
(已支持sqlsugar).NetCore、.Net6、Vue2、Vue3、Vite、TypeScript、Element plus+uniapp前后端分离,全自动生成代码;支持移动端(ios/android/h5/微信小程序。http://www.volcore.xyz/
|
|
khellang/Scrutor
Assembly scanning and decoration extensions for Microsoft.Extensions.DependencyInjection
|
|
nuke-build/nuke
🏗 The AKEless Build System for C#/.NET
|
|
fanliang11/surging
Surging is a micro-service engine that provides a lightweight, high-performance, modular RPC request pipeline. support Event-based Asynchronous Pattern and reactive programming ,The service engine supports http, TCP, WS,Grpc, Thrift,Mqtt, UDP, and DNS protocols. It uses ZooKeeper and Consul as a registry, and integrates it. Hash, random, polling, Fair Polling as a load balancing algorithm, built-in service governance to ensure reliable RPC communication, the engine contains Diagnostic, link tracking for protocol and middleware calls, and integration SkyWalking Distributed APM
|
|
linq2db/linq2db
Linq to database provider.
|
|
waf/CSharpRepl
A command line C# REPL with syntax highlighting – explore the language, libraries and nuget packages interactively.
|
|
coverlet-coverage/coverlet
Cross platform code coverage for .NET
|
Version | Downloads | Last updated | |
---|---|---|---|
10.0.0-preview.3.25171.5 | 0 | 4/10/2025 | |
10.0.0-preview.2.25163.2 | 3,285 | 3/18/2025 | |
10.0.0-preview.1.25080.5 | 4,289 | 2/25/2025 | |
9.0.4 | 70,203 | 4/8/2025 | |
9.0.3 | 1,915,236 | 3/11/2025 | |
9.0.2 | 3,108,656 | 2/11/2025 | |
9.0.1 | 3,455,655 | 1/14/2025 | |
9.0.0 | 15,315,984 | 11/12/2024 | |
9.0.0-rc.2.24473.5 | 1,704,150 | 10/8/2024 | |
9.0.0-rc.1.24431.7 | 96,111 | 9/10/2024 | |
9.0.0-preview.7.24405.7 | 40,241 | 8/13/2024 | |
9.0.0-preview.6.24327.7 | 44,150 | 7/9/2024 | |
9.0.0-preview.5.24306.7 | 23,269 | 6/11/2024 | |
9.0.0-preview.4.24266.19 | 30,060 | 5/21/2024 | |
9.0.0-preview.3.24172.9 | 140,601 | 4/11/2024 | |
9.0.0-preview.2.24128.5 | 43,248 | 3/12/2024 | |
9.0.0-preview.1.24080.9 | 87,231 | 2/13/2024 | |
8.0.2 | 43,051,487 | 10/8/2024 | |
8.0.1 | 42,916,971 | 7/9/2024 | |
8.0.0 | 115,962,069 | 11/14/2023 | |
8.0.0-rc.2.23479.6 | 174,661 | 10/10/2023 | |
8.0.0-rc.1.23419.4 | 162,331 | 9/12/2023 | |
8.0.0-preview.7.23375.6 | 59,498 | 8/8/2023 | |
8.0.0-preview.6.23329.7 | 101,105 | 7/11/2023 | |
8.0.0-preview.5.23280.8 | 150,255 | 6/13/2023 | |
8.0.0-preview.4.23259.5 | 306,775 | 5/16/2023 | |
8.0.0-preview.3.23174.8 | 114,312 | 4/11/2023 | |
8.0.0-preview.2.23128.3 | 60,124 | 3/14/2023 | |
8.0.0-preview.1.23110.8 | 108,353 | 2/21/2023 | |
7.0.0 | 122,980,969 | 11/7/2022 | |
7.0.0-rc.2.22472.3 | 190,776 | 10/11/2022 | |
7.0.0-rc.1.22426.10 | 97,216 | 9/14/2022 | |
7.0.0-preview.7.22375.6 | 53,627 | 8/9/2022 | |
7.0.0-preview.6.22324.4 | 32,571 | 7/12/2022 | |
7.0.0-preview.5.22301.12 | 16,037 | 6/14/2022 | |
7.0.0-preview.4.22229.4 | 13,949 | 5/10/2022 | |
7.0.0-preview.3.22175.4 | 5,976 | 4/13/2022 | |
7.0.0-preview.2.22152.2 | 8,273 | 3/14/2022 | |
7.0.0-preview.1.22076.8 | 13,461 | 2/17/2022 | |
6.0.2 | 736,407 | 11/12/2024 | |
6.0.1 | 751,228 | 10/8/2024 | |
6.0.0 | 183,837,073 | 11/8/2021 | |
6.0.0-rc.2.21480.5 | 233,990 | 10/12/2021 | |
6.0.0-rc.1.21451.13 | 213,680 | 9/14/2021 | |
6.0.0-preview.7.21377.19 | 32,612 | 8/10/2021 | |
6.0.0-preview.6.21352.12 | 14,397 | 7/14/2021 | |
6.0.0-preview.5.21301.5 | 18,260 | 6/15/2021 | |
6.0.0-preview.4.21253.7 | 15,107 | 5/24/2021 | |
6.0.0-preview.3.21201.4 | 29,892 | 4/8/2021 | |
6.0.0-preview.2.21154.6 | 17,115 | 3/11/2021 | |
6.0.0-preview.1.21102.12 | 12,649 | 2/12/2021 | |
5.0.0 | 71,180,227 | 11/9/2020 | |
5.0.0-rc.2.20475.5 | 93,626 | 10/13/2020 | |
5.0.0-rc.1.20451.14 | 52,255 | 9/14/2020 | |
5.0.0-preview.3-runtime... | 47,543 | 4/23/2020 | |
5.0.0-preview.2-runtime... | 11,524 | 4/2/2020 | |
5.0.0-preview.8.20407.11 | 33,182 | 8/25/2020 | |
5.0.0-preview.7.20364.11 | 14,636 | 7/21/2020 | |
5.0.0-preview.6.20305.6 | 5,600 | 6/25/2020 | |
5.0.0-preview.5.20278.1 | 1,459 | 6/10/2020 | |
5.0.0-preview.4.20251.6 | 6,892 | 5/18/2020 | |
5.0.0-preview.1.20120.5 | 3,840 | 3/16/2020 | |
3.1.25 | 5,521,861 | 5/10/2022 | |
3.1.6 | 109,014,535 | 7/14/2020 | |
3.1.5 | 9,141,098 | 6/9/2020 | |
3.1.4 | 5,725,629 | 5/12/2020 | |
3.1.3 | 16,637,957 | 3/24/2020 | |
3.1.2 | 7,373,355 | 2/18/2020 | |
3.1.1 | 6,823,018 | 1/14/2020 | |
3.1.0 | 13,249,233 | 12/3/2019 | |
3.1.0-preview3.19553.2 | 15,161 | 11/13/2019 | |
3.1.0-preview2.19525.6 | 10,499 | 11/1/2019 | |
3.1.0-preview1.19506.1 | 6,203 | 10/15/2019 | |
3.0.3 | 199,118 | 2/18/2020 | |
3.0.2 | 91,104 | 1/14/2020 | |
3.0.1 | 524,133 | 11/18/2019 | |
3.0.0 | 197,971,139 | 9/23/2019 | |
3.0.0-rc1-19456-20 | 19,588 | 9/16/2019 | |
3.0.0-preview9-19423-09 | 32,943 | 9/4/2019 | |
3.0.0-preview8-28405-07 | 53,630 | 8/13/2019 | |
3.0.0-preview7-27912-14 | 38,497 | 7/23/2019 | |
3.0.0-preview6-27804-01 | 47,397 | 6/12/2019 | |
3.0.0-preview5-27626-15 | 17,267 | 5/6/2019 | |
3.0.0-preview4-27615-11 | 14,934 | 4/18/2019 | |
3.0.0-preview3-27503-5 | 83,144 | 3/6/2019 | |
3.0.0-preview-27324-5 | 35,142 | 1/29/2019 | |
2.1.0 | 472,327,974 | 5/29/2018 | |
2.1.0-rc1 | 153,794 | 5/6/2018 | |
2.1.0-preview2-26406-04 | 358,196 | 4/10/2018 | |
2.1.0-preview1-26216-03 | 173,294 | 2/26/2018 | |
2.0.4 | 216,284,101 | 12/12/2017 | |
2.0.3 | 36,190,215 | 11/14/2017 | |
2.0.0 | 93,884,604 | 8/11/2017 | |
2.0.0-preview2-25407-01 | 134,311 | 6/27/2017 | |
2.0.0-preview1-002111 | 77,853 | 5/9/2017 | |
1.1.9 | 1,702,512 | 7/10/2018 | |
1.1.2 | 40,009,331 | 5/9/2017 | |
1.1.1 | 7,067,210 | 3/6/2017 | |
1.1.0 | 36,411,296 | 11/16/2016 | |
1.1.0-preview1-001100 | 122,674 | 10/24/2016 | |
1.0.500-preview2-1-003177 | 133,866 | 11/16/2016 | |
1.0.3 | 126,817,491 | 3/6/2017 | |
1.0.1-beta-000933 | 96,665 | 1/27/2017 | |
1.0.0 | 75,359,567 | 6/27/2016 | |
1.0.0-rc2-final | 443,097 | 5/16/2016 | |
1.0.0-rc2-002702 | 1,314,554 | 5/16/2016 |