The Proven MSIL-Based Aspect-Oriented Framework for .NET.
- 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?
-
Add the PostSharp package to your project and annotate the code with
[CustomAttributes]. -
The C# or VB compiler builds your code into binaries.
-
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.
Our Complete Toolbelt
See detailed pricing
PostSharp [Framework]
Build your own aspects and start eliminating boilerplate from your .NET codebases.

PostSharp [Logging]
Add highly detailed logging to your .NET projects with zero impact on source code.

PostSharp [MVVM]
Eliminate the INotifyPropertyChanged boilerplate and more.

PostSharp [Threading]
Write verifiable thread-safe code in .NET without exploding your brain.

PostSharp [Caching]
Improve the performance of your .NET apps with a custom attribute.