Skip to content

[NETSDKE2E][Workload Sets] With manifest mode and workload installed, Unhandled exception occurs when running dotnet workload --info using global.json  #42581

@NicoleWang001

Description

@NicoleWang001

Describe the bug

With manifest mode and workload installed, Unhandled exception occurs when running 'dotnet workload --info using global.json

To Reproduce

  1. Install .NET 8.0.400 SDK

  2. Install workload eg. aspire
    dotnet workload install aspire
    image

  3. New a global.json and add workloadverion to this file under a new folder

    c:\tt\TestWithGloabalJson
    cd c:\tt\TestWithGloabalJson
    dotnet new global.json
    {
      "sdk": {
        "version": "8.0.400",
        "workloadVersion": "8.0.400"
      }
    }
  1. Run dotnet workload --info and observe

Expected Result

Proper suggestion without any exception. 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