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

`dotnet workload install wasm-tools` Fails #21277

Closed TanayParikh closed 3 years ago

TanayParikh commented 3 years ago

Error:

Installation rollback failed: Failed to install manifest microsoft.net.sdk.tvos version 15.0.100-rc.1.496: The transaction has aborted..
Rolling back pack Microsoft.NET.Runtime.WebAssembly.Sdk installation...
Workload installation failed: microsoft.net.runtime.webassembly.sdk::6.0.0-rc.2.21460.8 is not found in NuGet feeds https://api.nuget.org/v3/index.json".

Full Console Output:

sudo dotnet workload install wasm-tools

Welcome to .NET 6.0!
---------------------
SDK Version: 6.0.100-rc.2.21465.13

Telemetry
---------
The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry

----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------

Skip NuGet package signing validation. NuGet signing validation is not available on Linux or macOS https://aka.ms/workloadskippackagevalidation .
Skip NuGet package signing validation. NuGet signing validation is not available on Linux or macOS https://aka.ms/workloadskippackagevalidation .
Skip NuGet package signing validation. NuGet signing validation is not available on Linux or macOS https://aka.ms/workloadskippackagevalidation .
Updated advertising manifest microsoft.net.sdk.maui.
Updated advertising manifest microsoft.net.sdk.ios.
Updated advertising manifest microsoft.net.sdk.macos.
Updated advertising manifest microsoft.net.workload.emscripten.
Updated advertising manifest microsoft.net.workload.mono.toolchain.
Updated advertising manifest microsoft.net.sdk.tvos.
Updated advertising manifest microsoft.net.sdk.maccatalyst.
Updated advertising manifest microsoft.net.sdk.android.
Installing workload manifest microsoft.net.sdk.tvos version 15.0.100-rc.1.1534…
Installing workload manifest microsoft.net.sdk.android version 31.0.100-rc.1.12…
Installing workload manifest microsoft.net.sdk.maui version 6.0.100-rc.1.1608…
Installing workload manifest microsoft.net.sdk.macos version 12.0.100-rc.1.1534…
Installing workload manifest microsoft.net.sdk.maccatalyst version 15.0.100-rc.1.1534…
Installing workload manifest microsoft.net.sdk.ios version 15.0.100-rc.1.1534…
Installing pack Microsoft.NET.Runtime.WebAssembly.Sdk version 6.0.0-rc.2.21460.8...
Workload installation failed. Rolling back installed packs...
Installing workload manifest microsoft.net.sdk.tvos version 15.0.100-rc.1.496…
Installation rollback failed: Failed to install manifest microsoft.net.sdk.tvos version 15.0.100-rc.1.496: The transaction has aborted..
Rolling back pack Microsoft.NET.Runtime.WebAssembly.Sdk installation...
Workload installation failed: microsoft.net.runtime.webassembly.sdk::6.0.0-rc.2.21460.8 is not found in NuGet feeds https://api.nuget.org/v3/index.json".

Sources:

dotnet nuget list source
Registered Sources:
  1.  nuget.org [Enabled]
      https://api.nuget.org/v3/index.json
  2.  dotnet6 [Enabled]
      https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json
TanayParikh commented 3 years ago

Probably belongs in dotnet/runtime

TanayParikh commented 3 years ago

Also, is it expected to go to https://api.nuget.org/v3/index.json if it isn't a registered source?

$ sudo dotnet workload install wasm-tools

Skip NuGet package signing validation. NuGet signing validation is not available on Linux or macOS https://aka.ms/workloadskippackagevalidation .
Skip NuGet package signing validation. NuGet signing validation is not available on Linux or macOS https://aka.ms/workloadskippackagevalidation .
Skip NuGet package signing validation. NuGet signing validation is not available on Linux or macOS https://aka.ms/workloadskippackagevalidation .
Skip NuGet package signing validation. NuGet signing validation is not available on Linux or macOS https://aka.ms/workloadskippackagevalidation .
Skip NuGet package signing validation. NuGet signing validation is not available on Linux or macOS https://aka.ms/workloadskippackagevalidation .
Updated advertising manifest microsoft.net.workload.emscripten.
Updated advertising manifest microsoft.net.sdk.macos.
Updated advertising manifest microsoft.net.sdk.ios.
Updated advertising manifest microsoft.net.sdk.tvos.
Updated advertising manifest microsoft.net.workload.mono.toolchain.
Updated advertising manifest microsoft.net.sdk.maui.
Updated advertising manifest microsoft.net.sdk.android.
Updated advertising manifest microsoft.net.sdk.maccatalyst.
Installing pack Microsoft.NET.Runtime.WebAssembly.Sdk version 6.0.0-rc.2.21460.8...
Workload installation failed. Rolling back installed packs...
Installation rollback failed: Workload not found: microsoft-net-sdk-blazorwebassembly-aot. Known workloads: tvos android android-aot maui maui-mobile maui-desktop maui-core maui-android maui-maccatalyst maui-ios maui-windows macos microsoft-net-sdk-emscripten maccatalyst ios wasm-tools microsoft-net-runtime-android microsoft-net-runtime-android-aot microsoft-net-runtime-ios runtimes-ios microsoft-net-runtime-maccatalyst runtimes-maccatalyst microsoft-net-runtime-macos microsoft-net-runtime-tvos runtimes-tvos microsoft-net-runtime-mono-tooling
Rolling back pack Microsoft.NET.Runtime.WebAssembly.Sdk installation...
Workload installation failed: microsoft.net.runtime.webassembly.sdk::6.0.0-rc.2.21460.8 is not found in NuGet feeds https://api.nuget.org/v3/index.json".

$dotnet nuget list source
Registered Sources:
  1.  dotnet6 [Enabled]
      https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json
marcpopMSFT commented 3 years ago

See #20930 which probably explains this behavior. Try a newer rc2 build and let us know if it's not resolved.

beefydog commented 1 year ago

Did anyone find an actual solution to this problem? It appears DotNet7 does not have WASM build tools in the SDK nor in Visual Studio 2022. executing: dotnet workload install wasm-tools fails with the error message "Workload ID wasm-tools is not recognized" Anyone have a workaround for this? Is there some nuget package that needs to be installed? Is AOT not supported in .net7 ? I realize this thread is for .net6, but, after hours of hair pulling, and even reinstalling VS, I'm at wit's end trying to figure this out.