[ASPeKT]
Write cleaner, easier to maintain code. Faster. Now modernized for .NET 8.0.
Open source AOP framework with .NET 8.0/6.0 support, nullable reference types, and modern async patterns. Less boilerplate, more productivity.
Why Aspekt?
Modern .NET, Enhanced Performance, Better Developer Experience
🚀 Modern .NET Support
Built for .NET 8.0, .NET 6.0, and .NET Standard 2.1. Cross-platform support for Windows, Linux, and macOS. Nullable reference types enabled.
âš¡ High Performance
Benefits from latest .NET performance improvements. Efficient IL weaving with minimal runtime overhead. Production-ready logging aspects.
🎯 Easy Integration
Simple NuGet installation. Automatic MSBuild integration. Works with existing projects without complex setup or configuration.
Get [ASPeKT]
Freely available on NuGet with full source on GitHub. Everything you need to add AOP to your .NET projects.
DownloadExamples & Documentation
Comprehensive examples covering logging, contracts, async patterns, performance monitoring, and more.
Get GoingContribute
Interested in contributing and driving the direction of [ASPeKT]? Join us on GitHub!
GitHubQuick Example
// Install via NuGet
dotnet add package Aspekt
// Create your aspect
public class LoggingAspect : Aspect
{
public override void OnEntry(MethodArguments args)
=> Console.WriteLine($"Entering: {args.Name}");
}
// Apply it to any method
[LoggingAspect]
public void ProcessData()
{
// Your code here
}
Real-World Use Cases
See how Aspekt solves common development challenges
Observability
Add structured logging, metrics, and tracing to your entire application without modifying business logic.
Security
Implement authentication, authorization, and audit logging as reusable cross-cutting concerns.
Caching
Add intelligent caching layers with automatic invalidation using declarative attributes.
Resilience
Implement retry policies, circuit breakers, and fallback mechanisms declaratively.
Trusted by Developers
Join the community building better .NET applications
NuGet Downloads
GitHub Stars
Years Active
Open Source
Ready to Get Started?
Transform your .NET applications with the power of aspect-oriented programming.