* Don't download releases-index.json to resolving major version
Starting with .NET 5 the minor version is always zero.
The earlier releases don't get new versions anymore so we can hardcode the minor version instead of downloading releases-index.json to do the lookup.
* Remove unused variable
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Commit dist/setup/index.js
* Refresh after copilot commits
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>