This is deprecated since NET 6.0, eventually support will be removed:
https://learn.microsoft.com/en-us/dotnet/core/compatibility/...