Info
Version: | 9.0.0 |
Author(s): | Microsoft |
Last Update: | Tuesday, November 12, 2024 |
.NET Fiddle: | Online Example |
Project Url: | https://dot.net/ |
NuGet Url: | https://www.nuget.org/packages/Microsoft.Extensions.DependencyModel |
Install
Install-Package Microsoft.Extensions.DependencyModel
dotnet add package Microsoft.Extensions.DependencyModel
paket add Microsoft.Extensions.DependencyModel
Microsoft.Extensions.DependencyModel Download (Unzip the "nupkg" after downloading)
Dependencies
.NETStandard 1.3
- NETStandard.Library(>= 1.6.1)
- Newtonsoft.Json(>= 9.0.1)
- NETStandard.Library(>= 1.6.1)
- Newtonsoft.Json(>= 9.0.1)
- System.Buffers(>= 4.5.1)
- System.Memory(>= 4.5.4)
- System.Text.Encodings.Web(>= 5.0.0)
- System.Text.Json(>= 5.0.0)
- System.Buffers(>= 4.5.1)
- System.Text.Encodings.Web(>= 5.0.0)
- System.Text.Json(>= 5.0.0)
- System.Buffers(>= 4.5.1)
- System.Text.Encodings.Web(>= 5.0.0)
- System.Text.Json(>= 5.0.0)
- NETStandard.Library(>= 1.6.1)
- Newtonsoft.Json(>= 9.0.1)
- System.Buffers(>= 4.5.1)
- System.Memory(>= 4.5.4)
- System.Runtime.InteropServices.RuntimeInformation(>= 4.3.0)
- System.Text.Encodings.Web(>= 5.0.0)
- System.Text.Json(>= 5.0.0)
No dependencies.
- System.Memory(>= 4.5.4)
- System.Text.Encodings.Web(>= 5.0.0)
- System.Text.Json(>= 5.0.0)
- System.Text.Encodings.Web(>= 5.0.0)
- System.Text.Json(>= 5.0.0)
- System.Memory(>= 4.5.4)
- System.Text.Encodings.Web(>= 5.0.0)
- System.Text.Json(>= 5.0.0)
- System.Buffers(>= 4.5.1)
- System.Text.Encodings.Web(>= 5.0.0)
- System.Text.Json(>= 5.0.0)
- System.Buffers(>= 4.5.1)
- System.Text.Encodings.Web(>= 5.0.0)
- System.Text.Json(>= 5.0.0)
- System.Buffers(>= 4.5.1)
- System.Text.Encodings.Web(>= 5.0.0)
- System.Text.Json(>= 5.0.0)
- System.Buffers(>= 4.5.1)
- System.Text.Encodings.Web(>= 5.0.0)
- System.Text.Json(>= 5.0.0)
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.