<PackageReference Include="Microsoft.Extensions.FileProviders.Physical" Version="11.0.0" />

System.MemoryExtensionsPolyfills

Provides downlevel polyfills for span extension methods.
namespace System { internal static class MemoryExtensionsPolyfills { public static bool Contains<[System.Runtime.CompilerServices.Nullable(0)] T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>; public static bool ContainsAnyExcept(this ReadOnlySpan<char> span, char value); public static bool ContainsAny(this ReadOnlySpan<char> span, ReadOnlySpan<char> values); public static int Count<[System.Runtime.CompilerServices.Nullable(0)] T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>; public static int CommonPrefixLength<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other) where T : IEquatable<T>; } }