<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="9.0.9" />

StringMarshalling

Specifies how strings should be marshalled for generated p/invokes
namespace System.Runtime.InteropServices { internal enum StringMarshalling { Custom, Utf8, Utf16 } }