Description
1.install NET9 RC2 SDK(9.0.100-rc.2.24468.2) on win11-x64.
2.dotnet workload install aspire
3.mkdir test
4.cd test
5.dotnet new globaljson and update it with below contents
{
"sdk": {
"workloadversion": "9.0.100-rc.1.24453.3"
}
}
6.dotnet new aspire
7.dotnet workload restore
Expected Result:
In step7, the output displays well.
Actual Result:
Improper log displays-- we can see that log displays: successfully update workloads(aspire). and then display installing workloads...successfully installed workloads...
also happens during running "dotnet workload restore" in a directory not containing globaljson
Note: in NET9 RC1, it displays as below(for RC1, we only tried the scenario without using globaljson as the globajson scene is blocked by a bug #42582):
dotnet --info:
.NET SDK:
Version: 9.0.100-rc.2.24468.2
Commit: c204043
Workload version: 9.0.100-manifests.1e94e273
MSBuild version: 17.12.0-preview-24467-02+988196b1c
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\9.0.100-rc.2.24468.2\
.NET workloads installed:
[aspire]
Installation Source: SDK 9.0.100-rc.2
Manifest Version: 8.2.0/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.aspire\8.2.0\WorkloadManifest.json
Install Type: Msi
Configured to use workload sets when installing new manifests.
Workloads are configured to install and update using workload versions, but none were found. Run "dotnet workload restore" to install a workload version.
Host:
Version: 9.0.0-rc.2.24463.7
Architecture: x64
Commit: static
.NET SDKs installed:
9.0.100-rc.2.24468.2 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 9.0.0-rtm.24466.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 9.0.0-rc.2.24463.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 9.0.0-rtm.24467.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download