this post was submitted on 26 Dec 2023
16 points (94.4% liked)

.NET MAUI

126 readers
1 users here now

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Lmaydev 3 points 1 year ago* (last edited 1 year ago) (1 children)
winget install --id=Microsoft.VisualStudio.2022.Community -v "17.8.0" -e

Try this as a workaround

[–] SmartmanApps 1 points 1 year ago (1 children)

winget install --id=Microsoft.VisualStudio.2022.Community -v "17.8.0" -e

Thanks - everything I could find said you can't do it for Community edition - but that didn't work. Is there a particualr directory I need to be in or something?

[–] Lmaydev 2 points 1 year ago* (last edited 1 year ago) (3 children)

There's a good thread here about that error here: https://github.com/microsoft/winget-cli/issues/3068

Looks like it's either an old version or the cache is corrupted. Theres serveral fixes to try in there.

Can you install anything in Winget?

[–] SmartmanApps 2 points 1 year ago

This is the first time I've ever used Winget. I'll have a read through the thread and try some things out, and let you know how I go. Thanks!

[–] SmartmanApps 1 points 1 year ago (1 children)

P.S. Would I need to uninstall Visual Studio first?

[–] Lmaydev 2 points 1 year ago (1 children)
[–] SmartmanApps 2 points 1 year ago

BTW I tried without uninstalling first to see what would happen, and in essence it went "there's already an installation, checking for upgrades, there are no upgrades available, doing nothing", so looks like you could do it if upgrading, but doesn't work for downgrading - have to start fresh for a downgrade.

[–] SmartmanApps 1 points 1 year ago (1 children)

Woo hoo! I got it to work. I needed to run it in powershell as admin, and the Id needed to be in quotes, and it worked! I now have 17.8.0 installed, and deployment to my API 28 Android emulator is working - I can actually start developing on my new computer now. :-) Thank you so much for your help!

[–] Lmaydev 2 points 1 year ago

Ah that's amazing mate 😁 Happy coding. Hopefully they get the issue resolved soon.