Skip to content

[NETSDKE2E][Workload Sets] Running dotnet workload restore should install the workload set when using global.json #42582

@NicoleWang001

Description

@NicoleWang001

Describe the bug

Running dotnet workload restore` should install the workload set when using global.json

To Reproduce

  1. Install .NET 8.0.400 SDK

  2. Install workload within manifest mode. eg. aspire workload
    image

  3. New global.json and add workloadverison
    dotnet new global.json

    {
      "sdk": {
        "version": "8.0.400",
        "workloadVersion": "8.0.400"
      }
    }
  1. Try to run dotnet workload restore to install the workload set.

Expected Result

Run dotnet workload restore should install the workload set eg. 'dotnet workload list'
image

Actual Result

Unhandled exception:
image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions