<PackageReference Include="System.Runtime.Serialization.Formatters" Version="11.0.0-preview.5.26302.115" />

System.LocalAppContextSwitches

namespace System { internal static class LocalAppContextSwitches { public static bool BinaryFormatterEnabled { get; } } }