Obsolete! Use https://www.nuget.org/packages/MrAdvice/ instead! MrAdvice allows to weave aspects at build-time (just like PostSharp, but free as in free beer). Write your own aspects in the form of attributes and apply them to target methods or properties.
Install-Package MrAdvice.Fody -Version 2.0.0
dotnet add package MrAdvice.Fody --version 2.0.0
<PackageReference Include="MrAdvice.Fody" Version="2.0.0" />
paket add MrAdvice.Fody --version 2.0.0
MrAdvice.Fody package is obsolete. Use MrAdvice instead.