[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.

NuGet Version NuGet Downloads GitHub Stars

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.

Download
Examples & Documentation

Comprehensive examples covering logging, contracts, async patterns, performance monitoring, and more.

Get Going
Contribute

Interested in contributing and driving the direction of [ASPeKT]? Join us on GitHub!

GitHub

Quick 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

5K+

NuGet Downloads

20+

GitHub Stars

5+

Years Active

MIT

Open Source

Ready to Get Started?

Transform your .NET applications with the power of aspect-oriented programming.