Install runtime only
Description: Added ability to select to install runtime only instead of SDK. It utilizes built-in features of the dotnet-install script by conditionally passing -Runtime/--runtime flag.
Related issue: https://github.com/actions/setup-dotnet/issues/352
Check list:
- [x] Mark if documentation changes are required.
- [x] Mark if tests were added or updated to cover the changes.
@nikolai-laevskii, I'd also incorporate information about the new input to the README file. Also, there is a failed check https://github.com/actions/setup-dotnet/actions/runs/6556781112/job/17807271424?pr=476
This switch is cool, but I have another opposite idea, add a sdk-only switch.
Right now by default the runtime is always installed first, then the sdk.
When one wishes to install sdk only, there's really no need to install runtime separately before, since sdk already includes runtime.