question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"dotnet workload update --print-download-link-only" command fails

See original GitHub issue

I tried this with both the released version of preview 7 and the latest RC main branch build of the installer.

dotnet workload update --print-download-link-only fails. dotnet workload update (without --print-download-link-only) works fine, but I need to download packages in the background for VSMac.

This command was working AFAIR with preview 7 before I went on vacation a couple of weeks back.

jasonimison@Jasons-MacBook-Pro-2 ~/Library/Caches/VisualStudio/17.0/TempDownload $ /usr/local/share/dotnet/dotnet workload update --print-download-link-only  --temp-dir "/var/folders/j1/ykgr31c54fg72hz1gfqw_dch0000gn/T/-1203675120"
Skip NuGet package signing validation. NuGet signing validation is not available on Linux or macOS https://aka.ms/workloadskippackagevalidation .
Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadManifestCompositionException: Did not find workload manifest dependency 'Microsoft.NET.Workload.Emscripten' required by manifest 'microsoft.net.workload.mono.toolchain.manifest-6.0.100.6.0.0-preview.7.21377.19' [/var/folders/j1/ykgr31c54fg72hz1gfqw_dch0000gn/T/-1203675120/dotnet-manifest-extraction/microsoft.net.workload.mono.toolchain.manifest-6.0.100.6.0.0-preview.7.21377.19/WorkloadManifest.json]
   at Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver.ComposeWorkloadManifests()
   at Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver.Create(IWorkloadManifestProvider manifestProvider, String dotnetRootPath, String sdkVersion)
   at Microsoft.DotNet.Workloads.Workload.Update.WorkloadUpdateCommand.UseTempManifestsToResolvePacksAsync(DirectoryPath tempPath, Boolean includePreview)
   at Microsoft.DotNet.Workloads.Workload.Update.WorkloadUpdateCommand.GetUpdatablePackageUrlsAsync(Boolean includePreview)
   at Microsoft.DotNet.Workloads.Workload.Update.WorkloadUpdateCommand.Execute()
   at Microsoft.DotNet.Cli.DotNetTopLevelCommandBase.RunCommand(String[] args)
   at Microsoft.DotNet.Workloads.Workload.WorkloadCommand.Run(String[] args)
   at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient)
   at Microsoft.DotNet.Cli.Program.Main(String[] args)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
wli3commented, Aug 12, 2021

@nosami this is a bug in SDK being exposed only in --print-download-link and aot started to use “depend-on” feature

1reaction
jonathanpepperscommented, Aug 12, 2021

I’ve not used --print-download-link, but daily builds of that package seems like it is on this feed:

https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json

If you’re using the public release, everything should be on NuGet.org, though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to update .NET6 workloads with 6.0.200-preview. ...
Failed to download manifest package microsoft.net.workload.emscripten. Unhandled exception: Microsoft.NET.Sdk.WorkloadManifestReader.
Read more >
dotnet workload update command - .NET CLI
The dotnet workload update command updates all installed workloads to the newest available versions. It queries Nuget.org for updated ...
Read more >
dotnet workload install command - .NET CLI
The dotnet workload install command installs one or more optional workloads. Optional workloads can be installed on top of the .
Read more >
dotnet workload repair command - .NET CLI
The dotnet workload repair command reinstalls all installed workloads. Workloads are made up of multiple workload packs and it's possible to ...
Read more >
dotnet workload restore command - .NET CLI
The 'dotnet workload restore' command installs workloads needed for a project or a solution.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found