actions / actions/setup-dotnet

Create/update global.json with a specific version

Open
#439 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
TypeScript
Stars
1.2k
Forks
572
Avg merge
12d 20h
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name implementation files, tests, or entry points. Start by tracing how setup-dotnet selects the requested SDK during GitHub Actions, then identify the existing test coverage for version setup and define done as creating or updating global.json so CI builds with the specified version.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
ci-cd, devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.