Skip to main content
Microsoft.Extensions.DependencyModel package icon

Microsoft.Extensions.DependencyModel

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.

Total Downloads
3.4B
3,350,357,722
Published
Apr 14, 2026
Latest stable version

Install

.NET CLI
dotnet add package Microsoft.Extensions.DependencyModel --version 11.0.0-preview.3.26207.106
Package Manager Console
Install-Package Microsoft.Extensions.DependencyModel -Version 11.0.0-preview.3.26207.106
PackageReference
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="11.0.0-preview.3.26207.106" />

Frameworks

.NETFramework4.6.2 net10.0 net11.0 .NETStandard2.0

Dependencies

System.Text.Encodings.Web
.NETFramework4.6.2
[11.0.0-preview.3.26207.106, )
System.Text.Json
.NETFramework4.6.2
[11.0.0-preview.3.26207.106, )
System.Buffers
.NETFramework4.6.2
[4.6.1, )
System.Memory
.NETFramework4.6.2
[4.6.3, )
[11.0.0-preview.3.26207.106, )
[11.0.0-preview.3.26207.106, )
[11.0.0-preview.3.26207.106, )
System.Text.Json
.NETStandard2.0
[11.0.0-preview.3.26207.106, )
System.Buffers
.NETStandard2.0
[4.6.1, )
System.Memory
.NETStandard2.0
[4.6.3, )

Adoption guide

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.

Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.