Closed asheroto closed 6 months ago
If you install the latest .net sdk 8.0.preview 4, you will be able to manually install the .net maui workload but only versions 7 and 8.
I got the same issue I try to clean all and reinstall them, but I got some problems: First, the dotnet SDK install with Visual Studio was not installed normally, I run "dotnet --version" and get nothing. Then, I try to install the standard alone dotnet sdk package, and repair, and I can run "dotnet --version". Second, I try to install maui workload "dotnet workload install maui", and it returns "Workload ID mau is not recognized"
What's happened with maui workload? My deadline is coming. This is really annoying!
I wonder how many people are experiencing the issue and cannot use MAUI because of this.
Same issue with VS2022 17.7.6. Uninstalled, cleaned up old dirs, then re-installed. No MAUI.
Same issue here with VS2022 17.7.6 Community Edition.
Thanks for the issue report @asheroto! This issue appears to be a problem with Visual Studio, so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS.
If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.
Was having this issue. Played with MAUI in the past and wanted to revisit but could not get it work, getting same errors shown above. Updated VS 2022 to 17.8 just now and it is working again.
This is pretty old by now, seems resolved and is probably VS/tooling related. Closing this here.
Description
I have Visual Studio 2022. I added the
.NET Multi-platform App UI Development
but did not see any project templates.I was able to add them using
dotnet workload install maui
. I then created a project using the.NET Maui App
template but VS doesn't look right, it says "project unloaded" and "Attached" at the top and appears as such...It was recommended to try Visual Studio 2022 Preview so I installed that but that didn't help. I then uninstalled Visual Studio 2022 Preview and began using Visual Studio 2022 again. Still had issues.
Per #1473, I tried running but
maui-check
fails with...The items above that succeed and are in green, but those items failed and are in red.
Also per #1473, I tried running
dotnet workload install maui
again with Visual Studio 2022 but it failed with...Also per #1473, I have tried uninstalling and reinstalling this extension. This did not fix the problem either.
I also tried creating a
global.json
file and forcing the SDK version to6.0.408
and then runningdotnet workload install maui
but still got the same error. It appears to happen despite the SDK version number specified or without specifying.Full
maui-check
output...Tapping
y
thenEnter
to force CLI fixes does not resolve either. Note that the first time I ranmaui-check
it was also missing components underAndroid SDK Checkup
but it was able to resolve those issues.Using
dotnet workload search maui
returns no results...Running
dotnet new --install Microsoft.Maui.Templates
appears to work at first...But still fails under
maui-check
...It was also recommended to remove items in
C:\Program Files\dotnet\metadata\workloads
and re-run the above commands, but this did not help and I restored the files.Finally, I fully removed Visual Studio 2022 and reinstalled it, but am still facing the exact same issue.
For reference, here is the output of
dotnet --list-sdks
...At least when I tried it, there's something wrong with Visual Studio 2022 in that it does not set up MAUI properly. Visual Studio 2022 Preview didn't help either.
I appreciate your time and effort in solving this issue!
Steps to Reproduce
.NET Multi-platform App UI Development
maui-check
failsdotnet workload install maui
cannot find workloaddotnet new --install Microsoft.Maui.Templates
appears to work but doesn'tLink to public reproduction project repository
N/A
Version with bug
Unknown/Other (please specify)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows 11 Pro
Did you find any workaround?
No
Relevant log output