Switch to dotnet-8.0
#2 (closed) was fixed upstream in ed11106 Improve the dotnet version checks in configure.ac however the fix is not needed when updating to dotnet 8.0.8 as it is greater than or equal to 8.0. Another reason to prefer dotnet 8 over dotnet 7 is the latter is no longer maintained upstream.