We worked around a compiler bug https://github.com/dotnet/machinelearning/blob/c5f03e2c42940b23ea3f9eed88f23807d9f26453/test/Microsoft.ML.Core.Tests/Microsoft.ML.Core.Tests.csproj#L5-L6 This should be fixed in the .NET 7.0 GA SDK. We can remove this once we pick up that SDK.