Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Unable to install workloads #3087

Closed
CalaxDev opened this issue Oct 22, 2021 · 9 comments
Closed

[Bug] Unable to install workloads #3087

CalaxDev opened this issue Oct 22, 2021 · 9 comments
Labels
area-setup Installation, setup, requirements, maui-check, workloads, platform support s/duplicate 2️⃣ This issue or pull request already exists s/needs-info Issue needs more info from the author t/bug Something isn't working

Comments

@CalaxDev
Copy link

Description

After the recent Update of Visual Studio I am no longer able to install MAUI workloads.
I am calling the following commands:

C:\Users\me>dotnet --version
6.0.100-rc.2.21505.57

C:\Users\me>dotnet workload install maui
Workload ID maui is not recognized.

Maui-Check results in the same error, sadly

Steps to Reproduce

  1. Install latest Visual Studio 2022 Preview according to the Documentation on the Microsoft Maui Instlal Page
  2. Try to install maui workload

Expected Behavior

Workload Installation should work out of the box after a fresh VS 2022 install.
Maui-Check is not working either

Actual Behavior

Error resulting in "Workload maui not found"

Basic Information

  • Version with issue: VS2022 Preview 6.0 - dotnet version 6.0.100-rc.2.21505.57
  • Last known good version: Preview 5.0
  • IDE: Visual Studio 2022 - Latest Update (Preview 6.0)

Screenshots

image


Does anyone face the same Problem? What am I doing wrong here?
I only updated from Preview 5.0 to 6.0 and, sadly, this broke my setup.

@CalaxDev CalaxDev added the t/bug Something isn't working label Oct 22, 2021
@Eilon Eilon added the area-setup Installation, setup, requirements, maui-check, workloads, platform support label Oct 22, 2021
@CalaxDev
Copy link
Author

CalaxDev commented Oct 24, 2021

After a complete reinstall with the maui-check cleanup script I suddenly get a error saying it can't verify the package signature

Screenshot_20211024-180217_TeamViewer

It also tells me it can't find android-aot...

I'm really starting to doubt Maui is production ready anytime soon - I didn't get to build a single app yet ever since the previews launched...

What's going on here? What can I do to fix those problems?

@acaliaro
Copy link

After a complete reinstall with the maui-check cleanup script I suddenly get a error saying it can't verify the package signature

Screenshot_20211024-180217_TeamViewer

It also tells me it can't find android-aot...

I'm really starting to doubt Maui is production ready anytime soon - I didn't get to build a single app yet ever since the previews launched...

What's going on here? What can I do to fix those problems?

You are not alone. I have abandoned all tests and wait the final Vs2022 release /.net6

@nmase88
Copy link

nmase88 commented Oct 29, 2021

double check you don't have a copy of dotnet/sdk in both Program Files and Program Files (x86) that was the issue I had that was causing these problems for me, spent a day banging my head against a wall before I discovered that.
Though good luck being able to do anything if you do get past that bit, as developing with maui doesn't seem to get any easier once you resolve the install issues.

@CalaxDev
Copy link
Author

double check you don't have a copy of dotnet/sdk in both Program Files and Program Files (x86) that was the issue I had that was causing these problems for me, spent a day banging my head against a wall before I discovered that. Though good luck being able to do anything if you do get past that bit, as developing with maui doesn't seem to get any easier once you resolve the install issues.

Hey there,

I tried your suggestions, but I've even setup a brand new windows install and followed all the instructions both on here and maui-check, and am still getting the same error.

But thanks for the advice!

@jsuarezruiz
Copy link
Contributor

Remove the previous workloads using this script https://github.com/Redth/dotnet-maui-check/blob/main/Clean-Old-DotNet6-Previews.ps1 (could have a mix of old versions).

And then, install again the workloads:

dotnet workload install maui

or

dotnet workload install maui --from-rollback-file https://aka.ms/dotnet/maui/preview.10.json

Etc

@jsuarezruiz jsuarezruiz added the s/needs-info Issue needs more info from the author label Nov 12, 2021
@CalaxDev
Copy link
Author

Hey there - Thank you for your answer @jsuarezruiz

But this doesn't help, sadly. Still getting the same error after a reinstall, repair, fresh windows install, etc etc...

@jsuarezruiz
Copy link
Contributor

Could you share your errors?

@CalaxDev
Copy link
Author

Could you share your errors?

It's the same as the ones in my screenshots above

"Workload ID xxx is not recognized"

where as xxx can be Maui, android-aot, or whatever else I try to install

@TanayParikh
Copy link
Contributor

I'm having the same issue. This seems to be a dup of #3099

@Eilon Eilon closed this as completed Feb 10, 2022
@Eilon Eilon added the s/duplicate 2️⃣ This issue or pull request already exists label Feb 10, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Mar 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-setup Installation, setup, requirements, maui-check, workloads, platform support s/duplicate 2️⃣ This issue or pull request already exists s/needs-info Issue needs more info from the author t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants