The Proven MSIL-Based Aspect-Oriented Framework for .NET.

PostSharp
  • Reduce Boilerplate: Generate repetitive code during the build, out of your source files.
  • Aspect Libraries: Logging, caching, threading, and MVVM, professionally built, tested, and supported.
  • Proven & Current: In production since 2004, and updated for each new version of .NET, C#, and Visual Studio.

How Does It Work?

  1. Add the PostSharp package to your project and annotate the code with [CustomAttributes].

  2. The C# or VB compiler builds your code into binaries.

  3. PostSharp analyzes the binary and injects the implementation of the aspects.

4. Your App, Production-Ready

At run time, your business logic and the aspects execute as one compiled assembly. Your source code stays clean.

Trusted by development teams worldwide, in every industry.

  • Microsoft
  • Intel
  • Honda
  • Siemens Healthineers
  • Zeiss
  • Fidelity Investments
  • PwC
  • AON
  • Johnson Controls
  • Liebherr
  • BlackLine
  • Anton Paar