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.

How to downgrade maui sdk from 7.0.58 to 7.0.52

See original GitHub issue

Description

We have several issues with the 7.0.58 and want to go back to 7.0.52. For example https://github.com/dotnet/maui/issues/11579 but also things like this C:\Program Files\dotnet\sdk\7.0.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.ImportWorkloads.targets(38,5): error NETSDK1147: To build this project, the following workloads must be installed: ios [D:\gitlab\builds\QFfMLjaN\0\Foo\Bar\Baz.csproj::TargetFramework=net7.0-ios] despite ios and maui-ios is already installed with maui-workload of VS.
Depending on when people installed there VS, some colleagues/build-servers have 7.0.52, others have 7.0.58.
Dotnet workload provides no obvious way to downgrade.
What is your suggested way to downgrade the installed maui-sdk from 7.0.58 to 7.0.52.

We are on .net sdk 7.0.102.

Steps to Reproduce

  1. install visual Studio

Link to public reproduction project repository

https://github.com/dotnet/maui

Version with bug

7.0 (current)

Last version that worked well

7.0 (current)

Affected platforms

iOS, Android, Windows, Other (Tizen, Linux, etc. not supported by Microsoft directly)

Affected platform versions

all

Did you find any workaround?

no

Relevant log output

No response

Issue Analytics

  • State:closed
  • Created 8 months ago
  • Reactions:1
  • Comments:27 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
Hooterrcommented, Feb 7, 2023

I tried that previously and just again now after you suggested it, sadly it seems, it doesn’t do any significant change.

Didn’t work for me on Windows either, but worked on my Mac. Go figure.

I remember during the recent MAUI standup someone from MS said that the thing with workloads is that they’re ‘Trying to build a bus while driving it’ , which probably means we’ll all end up in a ditch by the side of the road, wheels up lol (don’t ban me, please, I’m just trying to bring attention to the issue)

1reaction
mattleibowcommented, Feb 2, 2023

@juwens is right on every point! Exactly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Downgrade from 7.0.58 to 7.0.52 : r/dotnetMAUI
We accidentally run dotnet workload update, now we have Maui sdk 7.0.58 installed, which has some bugs and is not the intended version...
Read more >
How to downgrade MAUI preview to earlier version
Ok, so I'm loving Maui, been using it a few months - fully appreciate it's still in "Preview", but started a greenfield project...
Read more >
Microsoft.Maui.Graphics 7.0.92
There is a newer prerelease version of this package available. See the version list below for details. .NET CLI; Package Manager; PackageReference ...
Read more >
How to downgrade .net maui from 11 to 5 preview?
MAUI is installed alongside with Visual Studio as a workload. AFAIK there's no way to downgrade a workload or install any version of...
Read more >
Syed Hoque: "How does one pin a .NET MAUI w…"
NET MAUI workload or even pin a MAUI version? ... GitHubHow to downgrade maui sdk from 7.0.58 to 7.0.52 · Issue #12998 ·...
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