.NETStandard2.0
An official and open-source Metalama extension that allows aspects to consume dependencies from an arbitrary dependency injection framework.
Published
Jun 30, 2026
3mo ago
Total Downloads
563.7K
563,694
Install
dotnet add package Metalama.Extensions.DependencyInjection --version 2025.1.18
| Product | Versions |
|---|---|
| .NET Standard |
README
About
The Metalama.Extensions.DependencyInjection package implements support for dependency injection in Metalama.
Principal Types
[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.
Documentation
Related Packages
- Metalama.Extensions.DependencyInjection.ServiceLocator: pulls dependencies using a service locator pattern.
Changes from Previous Version
No structural changes between v2025.1.17 and v2025.1.18.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Compatibility metadata lists 1 target framework; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.