<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.1" />

StringMarshalling

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