Following code needs to support .NET 10:
# This will fail as soon as .NET hits version 10, but hopefully by then
# we'll have a more robust way of finding the libhostfxr
hostfxr_path = dotnet_root / "host" / "fxr"
hostfxr_paths = hostfxr_path.glob(f"?.*/{hostfxr_name}")