Describe the bug
With manifest mode and workload installed, Unhandled exception occurs when running 'dotnet workload --info using global.json
To Reproduce
-
Install .NET 8.0.400 SDK
-
Install workload eg. aspire
dotnet workload install aspire

-
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"
}
}
- Run
dotnet workload --info and observe
Expected Result
Proper suggestion without any exception. eg. 'dotnet workload list'

Actual Result
Unhandled exception:
