setup-dotnet icon indicating copy to clipboard operation
setup-dotnet copied to clipboard

Create/update global.json with a specific version

Open cwensley opened this issue 2 years ago • 1 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. 😃

cwensley avatar Jun 29 '23 23:06 cwensley

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

IvanZosimov avatar Jun 30 '23 06:06 IvanZosimov