Please target .Net 8.0 or above... ref: https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core