Integration and Compatibility

PostSharp integrates with Visual Studio and supports most Microsoft .NET technologies, including Silverlight and Windows Phone.

Visual Studio Integration

PostSharp integrates with Visual Studio and Intellisense, making them aware of aspects in your code.

Code Editor Enhancements

Aspect-oriented programming adds abstraction to your code but, unlike other AOP frameworks that can force you into a debugging session to understand what's happening inside your application, PostSharp simply shows you in the Visual Studio editor. Code elements with aspects are lightly underlined, and the Intellisense tooltip contains detailed information about aspects.

Aspect Browser

When using aspect multicasting, inheritance, and IAspectProvider, it's not always obvious to which elements of code an aspect has been applied. That's why we provide a new Visual Studio toolbox, called Aspect Browser, specifically to answer this question.

Project Properties Page

We've added a new page to the project propterties dialog should you ever need to change your default properties.

NuGet Package

Don't like to install programs with administrative rights? No problem. We provide a Nuget package to let you get started with PostSharp in just a few clicks.

Build Process Integration

Since PostSharp primarily integrates into MSBuild, integration with build processes and continuous integration servers is virtually effortless.

For easier deployment, PostSharp does not need to be installed on each computer, but can be copied to source control (with or without NuGet).

Language Support

Both C# and Visual Basic are officially supported. PostSharp may work with other languages targetting MSIL, but these are not officially supported.

Platform Support

With PostSharp, you can build applications for the following platforms:

  • .NET Framework 2.0-4.0
  • Novell Mono
  • Silverlight 2.0-5.0 (*)
  • Windows Phone 7 (*)
  • .NET Compact Framework 2.0-3.5 (*)
  • Windows Azure

* feature limitations apply.

Tools Support

PostSharp does not interfere with tools that do not rely on MSIL analysis or transformation. Additionally, it is known to work with the following tools:

  • Visual Studio Code Analysis
  • Visual Studio Code Coverage (from VS 2010)
  • Visual Studio Code Contracts
  • TypeMock
  • JustMock