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 list --machine-readable with 6.0.400 preview do not list installed workloads from previous sdk band

See original GitHub issue

Describe the bug

The .NET6 workloads installed with 6.0.300 is not recognized while executing dotnet workload list --machine-readable --sdk-version 6.0.400-preview.22301.3 since the metadata to check whether the workloads are installed in the 6.0.300 path and not in the 6.0.400 path, eg: /usr/local/share/dotnet/metadata/workloads/6.0.300/InstalledWorkloads/maui

For vsmac updater, since workloads installed by 6.0.300 is not detected by 6.0.400, the next command to get the manifest urls won’t be called.

To Reproduce

Env: Apple Silicon Install 6.0.300 and install maui 6.0.300 rc2 bits using dotnet workload install maui --from-rollback-file https://aka.ms/dotnet/maui/6.0.300/rc.2.json
Install 6.0.400-preview.22301.10
Execute /usr/local/share/dotnet/dotnet workload list --machine-readable --sdk-version 6.0.400-preview.22301.3

Expected Result: NET6 workloads listed in user machine should be listed Actual Result: Since .NET6 workloads installed are within /usr/local/share/dotnet/metadata/workloads/6.0.300/InstalledWorkloads/maui and this is not recognized by 6.0.400. Workloads installed are not listed. Log: https://gist.github.com/GouriKumari/a62c85f989a187d7f0ad48c38ccc441a

Further technical details

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
GouriKumaricommented, Nov 8, 2022

I checked this with Kyle and our current plan is to move to .NET Workload insertion process. Closing this bug on that plan.

0reactions
marcpopMSFTcommented, Nov 7, 2022

Can someone join the workloads meeting next Monday to talk us through why this is still needed? I thought VSMac was moving towards a rollback file install mechanism. Is that not coming in soon?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow "dotnet workload update --print-download-link-only -- ...
dotnet workload list --machine-readable with 6.0.400 preview do not list installed workloads from previous sdk band #25772.
Read more >
dotnet workload install command - .NET CLI
The dotnet workload list command compares the versions of installed workloads with the currently available versions. When it finds that a ...
Read more >
dotnet workload list command - .NET CLI
The dotnet workload list command lists all installed workloads. For more information about the dotnet workload commands, see the dotnet ...
Read more >
NETSDK1045: The current .NET SDK does not support ...
Learn about .NET SDK error NETSDK1045, which occurs when the build tools can't find the requested version of the .NET SDK.
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 >

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