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.71k stars 1.06k forks source link

After Install 7.0.202 on Mac OS, install wasm-tools workload via Terminal met an error "Workload installation failed". #30959

Open lemon0213 opened 1 year ago

lemon0213 commented 1 year ago

REPRO MACHINE: MacOS Ventura(13.2) REPRO Configuration:

.NET Core SDK: 7.0.202

.NET Core Runtime: 7.0.4

INSTALL STEPS

  1. Install .NET 7.0.202 from https://dev.azure.com/dnceng/internal/_build/results?buildId=2124768&view=artifacts&pathAsName=false&type=publishedArtifacts
  2. Add feed to ~/.nuget/NuGet/NuGet.Config Feed using: https://pkgs.dev.azure.com/dnceng/internal/_packaging/7.0.202-servicing.23128.4-shipping/nuget/v3/index.json https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json https://pkgs.dev.azure.com/azure-public/vside/_packaging/xamarin-impl/nuget/v3/index.json image

REPRO STEPS After 7.0.202 install completed, install wasm-tools workload via Terminal using sudo dotnet workload install wasm-tools

ACTUAL Install wasm-tools workload met an error "Workload installation failed: microsoft.net.runtime.webassembly.sdk::6.0.0-rc.1.21451.13 is not found in NuGet feeds https://api.nuget.org/v3/index.json" image

EXPECTED Wasm-tools workloads can successfully installed.

lemon0213 commented 1 year ago

There was a similar bug before. I tried the workaround in the bug, but the issue still repro.

20833

lemon0213 commented 1 year ago

At the same time, this issue will not recur on 7.0.201(latest released build).

yinjiehe01 commented 1 year ago

Try this command to install wasm-tools "sudo dotnet workload install wasm-tools --configfile ~/.nuget/NuGet/NuGet.Config". Screen Shot 2023-03-03 at 9 26 11 AM

lemon0213 commented 1 year ago

Using this command to install wasm-tools "sudo dotnet workload install wasm-tools --configfile ~/.nuget/NuGet/NuGet.Config" can successfully.