actions / setup-dotnet

Set up your GitHub Actions workflow with a specific version of the .NET core sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create/update global.json with a specific version

cwensley opened this issue · comments

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. 😃

commented

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