The RequestLocalizationMiddleware does not return CultureInfo.InvariantCulture if it's a supported culture since .NET 8. There one project per donet version. All projects share the same code. The only difference is the TargetFramework