<PackageReference Include="Serilog" Version="4.3.1-dev-02406" />

System.Runtime.Versioning.SupportedOSPlatformGuardAttribute

Annotates a custom guard field, property or method with a supported platform name and optional version. Multiple attributes can be applied to indicate guard for multiple supported platforms.
namespace System.Runtime.Versioning { internal sealed class SupportedOSPlatformGuardAttribute : Attribute { public SupportedOSPlatformGuardAttribute(string platformName); } }