PostSharp Ultimate 新版本發表

Released: Dec 14, 2020

v6.8.x 中的更新


Updated Feb 11, 2021


  • Logging: Added the ability to disable logging for the current transaction.
  • Logging: CreateTransaction is now able to return null.


  • Threading: Acquiring yielder access to synchronized object causes ThreadMismatchException.
  • NullReferenceException in ThreadingInstrumentationPolicy.TaskEnhancements.RunImpl.
  • Logging: TypeFormatter throws NullReferenceException.
  • Logging: MultiplexerThreadLoggingContext throws ObjectDisposedException.
  • Logging: LoggingBackend...

Released: Oct 23, 2020

v6.7.x 中的更新


Updated Dec 3, 2020


  • Properties marked [Obsolete] in postsharp.config are ignored.


Updated Nov 12, 2020


  • Build for win-x86 runtime fails when ran from Visual Studio.
  • Licensing: Unlimited community features consume LOC from per-usage licenses.
  • UI: Licensing options no longer fail to load when a license server is registered.
  • VSX: Opening solution properties while having PostSharp solution configuration file opened breaks the solution properties window.
  • Recordable: Incorrect...

Released: Apr 21, 2020

v6.6.x 中的更新


Updated Dec 3, 2020


  • Properties marked [Obsolete] in postsharp.config are ignored.


Updated Nov 12, 2020


  • Licensing: Unlimited community features consume LOC from per-usage licenses.


Updated Oct 22, 2020


  • BadImageFormatException in a generated async state machine for a generic method.
  • Licensing: System.ArgumentException in CountLinesOfCodeTask.GetLinesOfCodeOfType.


Updated Oct 1, 2020


  • Licensing: ArgumentNullException at build-time when no...

Released: Jan 20, 2020

v6.5.x 中的更新


Updated Mar 6, 2020


  • VSX: Cannot access service before is has been initialized in RoslynCodeFactory.workspace.
  • VSX: IndexOutOfRangeException when failed to parse target framework moniker.
  • VSX: ArgumentOutOfRangeException on missing declaration name in PostSharpDiagnosticAnalyzer.
  • Location resolution: Could not write lines to file PostSharpAnalyzers.config (build-time error).
  • VSX: ThreadMismatchException in EnhancedSpanProvider.GetEnhancedSpansImplAsync.
  • VSX: Exception thrown when...

Released: Oct 23, 2019

v6.4.x 中的更新


Updated Mar 9, 2020


  • Undo/Redo WPF buttons don't display in .NET Core 3 WPF.
  • UI: Windows 10 high contrast makes wizards unreadable.
  • XAML: Undo/Redo icons disappeared from UI.


Updated Feb 6, 2020


  • MSBuild: File lock error when reading reference assemblies.
  • PostSharp.Compiler.Engine: PostSharp.Compiler.Common is available for .NET Core 2.1 only, not for .NET Standard.
  • Internal tracing throws InvalidOperationException in assembly loading before the tracing module is...

Released: Jun 21, 2019

v6.3.x 中的更新


Updated Nov 07, 2019


  • Intellisense documentation not available for a few PostSharp.Patterns libraries.


Updated Oct 24, 2019


  • Contracts: expose method to return formatting arguments.


Updated Oct 21, 2019


  • VSX: Editing project build properties is not reflected in aspect explorer.
  • VSX: Deadlock in CpsProjectAccessor when creating a new project.
  • VSX: postsharp.config item template is named postsharp1.config in CPS projects by default.
  • Debugger...

Released: Mar 26, 2019

v6.2.x 中的更新


Updated Oct 9, 2019


  • Aspect Framework: OnYield didn't get called unless you also overrode OnEntry or OnResume.
  • Aspect Framework: Setting ReturnValue in semantic advices emitted broken code.
  • Logging: CallerInfo.GetDynamic returns null and causes LoggerFactoryExtensions to throw NullReferenceException.


Updated Sep 17, 2019


  • Recordable: Improved the exception message when adding a non-recordable object to a recordable object's collection.


Updated Sep 6 - Sep...

Released: Mar 11, 2019

6.1 中的更新


  • Major refactoring of the add-in to the Visual Studio debugger:
    • Makes sure the debugging experience (such as pressing F10 or F11) is natural when aspects are woven into hand-written code.
    • Focuses on the debugging of async methods. In previous versions, debugging an aspected async method could be pretty challenging. It now behaves very smoothly.
  • Adds improved support for Semantic Logging.
  • Adds Improvements for distributed logging:
    • Hierarchical Ids: PostSharp can generate ids that let you easily...

Released: Jul 9, 2018

v6.0 中的更新


New Platforms

  • Support for .NET Core 2.0-2.1 and .NET Standard 2.0 - PostSharp now runs natively under .NET Core 2.0 or later, which means that .NET Core projects are no longer cross-compiled from .NET Framework. Note that PostSharp 6.0 will still build only under Windows.
  • Support for Portable PDB - Now supports portable PDB files as well as "embedded" portable PDBs.
  • Support for C# 7.2 - The new in parameters and ref struct types are now properly handled.
  • Support for CPS-based project systems...

Released: Jul 10, 2017

v5.0.28 中的更新


  • New Platforms
    • Visual Studio 2017 – PostSharp now supports the new MSBuild project format, side-by-side installations of VS, lightweight solution loads, and achieved significant performance improvements.
    • C# 7.0 – Tested and fixed all aspects with the new features of C# 7.0, including value-typed tasks and multiple return values.
    • .NET Core 1.1 – You can now build applications that run on .NET Core 1.1, but you can still only build and debug them on a Windows machine running Visual Studio.
    • .NET...