PostSharp 4.2.8-alpha

Prefix Reserved
This is a prerelease version of PostSharp.
There is a newer version of this package available.
See the version list below for details.
dotnet add package PostSharp --version 4.2.8-alpha
                    
NuGet\Install-Package PostSharp -Version 4.2.8-alpha
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PostSharp" Version="4.2.8-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PostSharp" Version="4.2.8-alpha" />
                    
Directory.Packages.props
<PackageReference Include="PostSharp" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add PostSharp --version 4.2.8-alpha
                    
#r "nuget: PostSharp, 4.2.8-alpha"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package PostSharp@4.2.8-alpha
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=PostSharp&version=4.2.8-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=PostSharp&version=4.2.8-alpha&prerelease
                    
Install as a Cake Tool

The #1 pattern-aware extension to C# and VB.

Product Compatible and additional computed target framework versions.
.NET Framework net35-client is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (155)

Showing the top 5 NuGet packages that depend on PostSharp:

Package Downloads
PostSharp.Patterns.Common

Code Contracts and common functionalities used by other PostSharp pattern libraries. An official PostSharp pattern library.

KC.Foundation.SF

See more at https://github.com/KolibreCredit/KC.Foundation .

eDocument.Core

eDocument Core API.

PostSharp.Sdk

PostSharp SDK allows for development of PostSharp add-ins using low-level APIs.

L.Common.Core

Package Description

GitHub repositories (3)

Showing the top 3 popular GitHub repositories that depend on PostSharp:

Repository Stars
garymcleanhall/AdaptiveCode
Code samples to accompany the book Adaptive Code Via C#.
keyboardDrummer/SmartReactives
A .NET library that detects when an expression changes its value
postsharp/PostSharp.Samples
PostSharp Samples
Version Downloads Last Updated
2026.0.5 20,128 1/6/2026
2026.0.4-rc 683 12/18/2025
2026.0.3-rc 895 12/4/2025
2026.0.2-preview 1,070 11/13/2025
2026.0.1-preview 5,365 10/8/2025
2025.1.13 3,320 12/18/2025
2025.1.12 11,537 11/12/2025
2025.1.11 3,521 11/4/2025
2025.1.10 6,687 10/22/2025
2025.1.9 16,008 9/12/2025
2025.1.8 4,733 9/2/2025
2025.1.7 2,046 9/1/2025
2025.1.6 8,469 8/16/2025
2025.0.10 8,528 8/16/2025
2024.0.21 1,168 12/18/2025
2024.0.20 1,907 11/12/2025
2024.0.19 1,852 11/5/2025
2024.0.18 1,807 8/15/2025
2024.0.17 1,746 8/14/2025
4.2.8-alpha 7,844 8/21/2015
Loading failed