Announcing PostSharp 2023: Support for .NET 7.0 and C# 11

by Gael Fraiteur on 18 Jan 2023

We are excited to announce the release of PostSharp 2023 today. PostSharp 2023 adds support for the latest version of the .NET stack and includes the ability to use both PostSharp and Metalama on the same machine. It is available for download on NuGet, Visual Studio Marketplace and our website.

Platform update

PostSharp 2023 adds support for .NET 7.0, C# 11 and Visual Studio 2022.4.

Note that PostSharp 6.10 remains our long-term supported (LTS) release, as .NET 7.0 is not an LTS version of .NET.

Metalama compatibility

As many of you may already know, we have been working hard on Metalama for the last two years. Metalama is our next-generation meta-programming platform, entirely based on Roslyn instead of MSIL rewriting. This new version of PostSharp is designed to be compatible with Metalama, allowing teams to use both technologies during a transition period. In concrete terms, PostSharp Tools for Visual Studio will no longer suggest the option to add an aspect to a project if the package that implements that aspect is not already added to the project. We have removed the ability to automatically add PostSharp packages to projects. This feature was built before NuGet existed; it was still marginally useful during NuGet’s infancy but is now considered redundant.

Please keep in mind that it is not recommended to use PostSharp and Metalama in the same project. By compatibility, we mean that the two can be used on the same machine, but in separate projects.

We’ve also switched to calendar versioning for all our products.

Summary

This release shows our commitment to keeping PostSharp up-to-date with the .NET platform and supporting the thousands of companies that rely on it. Even several years after Metalama becomes a complete replacement for PostSharp, we’ll continue to provide support and maintenance for our classic product line.

Happy PostSharping!