Metalama.Extensions.DependencyInjection
2025.0.8
Prefix Reserved
See the version list below for details.
dotnet add package Metalama.Extensions.DependencyInjection --version 2025.0.8
NuGet\Install-Package Metalama.Extensions.DependencyInjection -Version 2025.0.8
<PackageReference Include="Metalama.Extensions.DependencyInjection" Version="2025.0.8" />
<PackageVersion Include="Metalama.Extensions.DependencyInjection" Version="2025.0.8" />
<PackageReference Include="Metalama.Extensions.DependencyInjection" />
paket add Metalama.Extensions.DependencyInjection --version 2025.0.8
#r "nuget: Metalama.Extensions.DependencyInjection, 2025.0.8"
#:package Metalama.Extensions.DependencyInjection@2025.0.8
#addin nuget:?package=Metalama.Extensions.DependencyInjection&version=2025.0.8
#tool nuget:?package=Metalama.Extensions.DependencyInjection&version=2025.0.8
The Metalama.Extensions.DependencyInjection package implements support for dependency injection in Metalama.
It has two major features:
[IntroduceDependency]is an advice attribute that makes it easier for aspect to pull dependencies without knowing which dependency framework is used by the consuming project.[Dependency]is an aspect that turns a field or property into a dependency, and pulls it according to the rules of the dependency framework used by the consuming project.
See also
| 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 was computed. 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 was computed. 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 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.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 was computed. 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. |
-
.NETStandard 2.0
- JetBrains.Annotations (>= 2024.2.0)
- Metalama.Framework (>= 2025.0.8)
NuGet packages (9)
Showing the top 5 NuGet packages that depend on Metalama.Extensions.DependencyInjection:
| Package | Downloads |
|---|---|
|
Metalama.Extensions.DependencyInjection.ServiceLocator
A Metalama framework adapter that locates and pulls dependencies from a global service provider. |
|
|
Shinya.Core
Shinya.Framework |
|
|
Metalama.Patterns.Caching.Aspects
A set of aspects that simplify the caching: [Cache] to cache a method result as a function of its parameters, [InvalidateCache] to invalidate the cache, or [CacheKey] to mark a cache key in a class. |
|
|
Kalbe.Library.Common
Package Description |
|
|
LyuExtensions
一些简单的拓展方法集合和C#特性/切面集合 |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Metalama.Extensions.DependencyInjection:
| Repository | Stars |
|---|---|
|
metalama/Metalama
A Roslyn-based open-source patterns & architecture toolkit for C#. Built by the makers of PostSharp.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 2026.1.25 | 1,072 | 8/21/2026 |
| 2026.1.24 | 1,446 | 8/13/2026 |
| 2026.1.23 | 471 | 8/10/2026 |
| 2026.1.22 | 616 | 8/5/2026 |
| 2026.1.21 | 4,317 | 7/21/2026 |
| 2026.1.20 | 1,696 | 7/15/2026 |
| 2026.1.19 | 9,937 | 6/27/2026 |
| 2026.1.18 | 1,540 | 6/10/2026 |
| 2026.1.17 | 484 | 6/5/2026 |
| 2026.1.16 | 560 | 6/3/2026 |
| 2026.1.15-rc | 2,141 | 5/15/2026 |
| 2026.1.14-rc | 491 | 5/13/2026 |
| 2026.1.13-preview | 194 | 5/13/2026 |
| 2026.1.12-preview | 489 | 5/12/2026 |
| 2026.1.11-preview | 635 | 5/6/2026 |
| 2026.0.25 | 233 | 6/30/2026 |
| 2026.0.24 | 209 | 6/27/2026 |
| 2026.0.23 | 6,050 | 5/15/2026 |
| 2025.1.18 | 193 | 6/30/2026 |
| 2025.0.8 | 8,932 | 1/6/2025 |