Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for automatic workload installation by specifying required workloads in global.json #45216

Open
just-ero opened this issue Nov 28, 2024 · 1 comment
Assignees
Milestone

Comments

@just-ero
Copy link

just-ero commented Nov 28, 2024

Problem Description

Currently, it is not possible to automate the installation of a required workload for projects. It would be good to not have to remind contributors to a project to run dotnet workload install <workload> before they can build.

The feature would additionally be useful for CI jobs, which would no longer have to manually install required workloads.

Proposed Solution

An entry in the global.json file specifying the required workloads (and, potentially, their version) which the SDK then picks up on and installs before a restore/build would be ideal:

{
  "sdk": {
    "version": "8.0.404"
  },
  "workloads": ["wasi-experimental"]
}

or:

{
  "sdk": {
    "version": "8.0.404"
  },
  "workloads": {
    "wasi-experimental": {
      "version": "8.0.404"
    }
  }
}
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Workloads untriaged Request triage from a team member labels Nov 28, 2024
@marcpopMSFT marcpopMSFT self-assigned this Dec 10, 2024
@marcpopMSFT marcpopMSFT added this to the Backlog milestone Dec 17, 2024
@marcpopMSFT marcpopMSFT removed the untriaged Request triage from a team member label Dec 17, 2024
@marcpopMSFT
Copy link
Member

@baronfel we were just talking about this. No plans at the moment for this but good to keep in mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants