Sergio0694 / PolySharp

PolySharp provides generated, source-only polyfills for C# language features, to easily use all runtime-agnostic features downlevel. Add a reference, set your C# version to latest and have fun! 🚀
MIT License
1.83k stars 49 forks source link

Add setup-dotnet action #113

Closed bgrainger closed 1 week ago

bgrainger commented 1 week ago

Description (optional)

This will install the .NET SDK version specified in global.json.

Additional context (optional)

https://github.com/Sergio0694/PolySharp/pull/108#issuecomment-2475065118 says:

Waiting for GitHub Actions to update the VM images to include the .NET 9 SDK

You don't have to wait; you can install the SDK as part of each build.

Sergio0694 commented 1 week ago

Yes I'm aware you can install .NET manually, but I'm intentionally not doing that. Doing so makes each CI run take more time and wastes resources, and it adds more code to maintain to the CI script. The new images are already being deployed for the GitHub Actions runners, so there's no point. I'm not in any rush, and waiting a few more days won't make a difference 🙂