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

Support SDK workloads #523

Open
timheuer opened this issue May 2, 2024 · 2 comments
Open

Support SDK workloads #523

timheuer opened this issue May 2, 2024 · 2 comments
Labels
feature request New feature or request to improve the current logic

Comments

@timheuer
Copy link
Contributor

timheuer commented May 2, 2024

Description:
The SDK ships with supporting a set of workloads (Wasm, MAUI, Aspire, and potentially more in the future). The setup-dotnet action should support these as further instructions to actually 'setup' the full dotnet environment as expected, not automatically, but opt-in.

uses: actions/setup-dotnet@v5
with:
  dotnet-version: 8.0.x
  workloads: [maui, aspire]

The expectation is that after SDK would be installed that then command would run dotnet workload update (to ensure manifests are updated) and then dotnet workload install on each item in the array

Justification:
Workloads are a primary way to get additional platform SDK tools and dependencies for key .NET frameworks.

/cc @baronfel

@timheuer timheuer added feature request New feature or request to improve the current logic needs triage labels May 2, 2024
@baronfel
Copy link

baronfel commented May 2, 2024

Love this - one implementation note is that the list of workloads provided can be supplied to dotnet workload install all in one go, because the command takes an array of workloads. This should result in a performance improvement.

One subtlety to the situation is that instead of installing various workloads, we also support dotnet workload restore to acquire the workloads that a given solution or project require - that would be less 'variable' (meaning you wouldn't have to update the list of workloads).

@HarithaVattikuti
Copy link
Contributor

Hello @timheuer
Thank you for creating this feature request. We will investigate it and get back to you as soon as we have some feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request to improve the current logic
Projects
None yet
Development

No branches or pull requests

3 participants