actions / setup-dotnet

Set up your GitHub Actions workflow with a specific version of the .NET core sdk
MIT License
919 stars 454 forks source link

Create/update global.json with a specific version #439

Open cwensley opened 1 year ago

cwensley commented 1 year ago

Description: This is a bit in reverse of having a global.json as an input. I would like to write a global.json for the version specified so that it is used for building during CI.

Justification: This would ensure that the version you specify is actually used after it is installed. The use case for this is so that during development you can use the latest version, but when building release versions it uses a fixed version. In particular, this comes in very handy when using workloads (e.g. in our case, macos workload), where compiling for the latest version for release gives errors when trying to consume in a project that is fixed with an older workload version.

Are you willing to submit a PR? Sure, I could try, if it gets the go-ahead. 😃

IvanZosimov commented 1 year ago

Hi, @cwensley 👋 Thanks for the feature request, we will take a look and get back to you with updates!