dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.75k stars 1.07k forks source link

[NETSDKE2E]With net9RTM SDK installed, install wasm-toos/maui/aspire failed with error "Workload installation failed: Workload manifest dependency 'Microsoft.NET.Workload.Emscripten.Current' version '9.0.0-rtm.24513.1' is lower than version '9.0.0'" #44217

Closed v-ainigao closed 4 weeks ago

v-ainigao commented 1 month ago

Build info: .net9.0.100-rtm.24515.15(runtime-9.0.0-rtm.24511.16) SDK

Repro steps: 1.Download the NET9 RTM SDK. 2.Install workload with commands. dotnet workload install maui / dotnet workload install aspire or dotnet workload install wasm-tools --skip-sign-check

Expected Result: workload installd successfully.

Actual Result: workload installs failed with below error. Image Workload installation failed: Workload manifest dependency 'Microsoft.NET.Workload.Emscripten.Current' version '9.0.0-rtm.24513.1' is lower than version '9.0.0' required by manifest 'microsoft.net.workload.mono.toolchain.current' [C:\Program Files\dotnet\x64\sdk-manifests\9.0.100\microsoft.net.workload.mono.toolchain.current\9.0.0-rtm.24515.15\WorkloadManifest.json]

Note: The same error also appears in dotnet --info. Image

dotnet --info: .NET SDK: Version: 9.0.100-rtm.24515.15 Commit: b2ac8c11db Workload version: 9.0.100-manifests.5a1ed105 MSBuild version: 17.12.3+4ae11fa8e

Runtime Environment: OS Name: Windows OS Version: 10.0.22631 OS Platform: Windows RID: win-x64 Base Path: C:\Program Files\dotnet\x64\sdk\9.0.100-rtm.24515.15\

.NET workloads installed: Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadManifestCompositionException: Workload manifest dependency 'Microsoft.NET.Workload.Emscripten.Current' version '9.0.0-rtm.24513.1' is lower than version '9.0.0' required by manifest 'microsoft.net.workload.mono.toolchain.current' [C:\Program Files\dotnet\x64\sdk-manifests\9.0.100\microsoft.net.workload.mono.toolchain.current\9.0.0-rtm.24515.15\WorkloadManifest.json] at Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver.ComposeWorkloadManifests() at Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver.InitializeManifests() at Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver.GetAvailableWorkloadDefinitions()+MoveNext() at System.Linq.Enumerable.IEnumerableSelectIterator2.MoveNext() at Microsoft.DotNet.Workloads.Workload.VisualStudioWorkloads.GetAvailableVisualStudioWorkloads(IWorkloadResolver workloadResolver) at Microsoft.DotNet.Workloads.Workload.VisualStudioWorkloads.GetInstalledWorkloads(IWorkloadResolver workloadResolver, InstalledWorkloadsCollection installedWorkloads, Nullable1 sdkFeatureBand) at Microsoft.DotNet.Workloads.Workload.List.WorkloadInfoHelper.AddInstalledVsWorkloads(IEnumerable`1 sdkWorkloadIds) at Microsoft.DotNet.Cli.WorkloadCommandParser.ShowWorkloadsInfo(ParseResult parseResult, WorkloadInfoHelper workloadInfoHelper, IReporter reporter, String dotnetDir, Boolean showVersion) at Microsoft.DotNet.Cli.CommandLineInfo.PrintWorkloadsInfo() at Microsoft.DotNet.Cli.CommandLineInfo.PrintInfo() at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient) at Microsoft.DotNet.Cli.Program.Main(String[] args)

Host: Version: 9.0.0-rtm.24511.16 Architecture: x64 Commit: b030c4dfdf RID: win-x64

.NET SDKs installed: 9.0.100-rtm.24515.15 [C:\Program Files\dotnet\x64\sdk]

.NET runtimes installed: Microsoft.AspNetCore.App 9.0.0-rtm.24514.7 [C:\Program Files\dotnet\x64\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 9.0.0-rtm.24511.16 [C:\Program Files\dotnet\x64\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 9.0.0-rtm.24511.2 [C:\Program Files\dotnet\x64\shared\Microsoft.WindowsDesktop.App]

Other architectures found: arm64 [C:\Program Files\dotnet]

Environment variables: Not set

global.json file: Not found

Learn more: https://aka.ms/dotnet/info

Download .NET: https://aka.ms/dotnet/download

v-ainigao commented 1 month ago

Not repro on yesterday's build: .net9.0.100-rtm.24514.15(runtime-9.0.0-rtm.24511.16)sdk

v-ainigao commented 1 month ago

The same issue also repro when creating a new project. Image

v-ainigao commented 1 month ago

This issue also repro's on ARM64/Linux/MAC OS. Arm64 Image Linux Image MAC Image

marcpopMSFT commented 1 month ago

@lewing I thought you were getting rid of the version requirement? I think we need a codeflow with a stable emsdk.

v-ainigao commented 1 month ago

Currently the latest error for installing wasm-tools workload Image but installed aspire and maui workload can success Image update maui workload appear error Image

mmitche commented 1 month ago

Is the isolated feed for emsdk included in the nuget.config when doing the workload restore? https://github.com/dotnet/sdk/blob/release/9.0.1xx/NuGet.config#L11

marcpopMSFT commented 1 month ago

The stable versions aren't going to show up on the dotnet9 feed anymore. However, I think at least one runtime build with a stable emsdk dependency showed up there so if you use that feed, you may be unable to do workload work at the moment. You'll have to use an additional feed per Matt above.

v-ainigao commented 1 month ago

The stable versions aren't going to show up on the dotnet9 feed anymore. However, I think at least one runtime build with a stable emsdk dependency showed up there so if you use that feed, you may be unable to do workload work at the moment. You'll have to use an additional feed per Matt above.

After adding additional feed, maui workload upgrade still fails with same errors. Image

v-ainigao commented 1 month ago

This issue still repro's on net9.0.100SDK, Did I miss some additional feeds? dotnet workload install maui/android Image Image

Workload installation failed: One or more errors occurred. (Version 34.0.145 of package microsoft.android.sdk.windows.msi.arm64 is not found in NuGet feeds https://api.nuget.org/v3/index.json;https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json;https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json;https://pkgs.dev.azure.com/dnceng/internal/_packaging/9.0.100-rtm.24518.46-shipping/nuget/v3/index.json.

v-ainigao commented 1 month ago

Today, installing maui in the latest 9.0.100SDK still failed. Image

v-ainigao commented 4 weeks ago

After adding additional feeds, maui/android workloads can be installed successfully. So, close it Image Image

Additional feed:

<add key="darc-pub-xamarin-xamarin-macios-ecbd8510" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-xamarin-xamarin-macios-ecbd8510/nuget/v3/index.json" />
   <add key="darc-pub-dotnet-android-df9aaf2-2" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-android-df9aaf29-2/nuget/v3/index.json" />
<add key="darc-pub-xamarin-xamarin-macios-8354d6d" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-xamarin-xamarin-macios-8354d6d9/nuget/v3/index.json" />