[Bug] .NET MAUI templates not available
See original GitHub issueDescription
I can not create MAUI project using VS2022 or CLI
Steps to Reproduce
Expected Behavior
Actual Behavior
I run these codes as stated in document:
PS C:\myData\testCode\MAUI_test1> dotnet new maui -n MAUI_test1
No templates found matching: 'maui'.
To list installed templates, run:
dotnet new --list
To search for the templates on NuGet.org, run:
dotnet new maui --search
and when I am trying to install template, I am getting this error:
PS C:\myData\testCode\MAUI_test1> dotnet new --install maui
The following template packages will be installed:
maui
Warning: maui is not found in NuGet feeds https://api.nuget.org/v3/index.json, C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\.
maui could not be installed, the package does not exist.
dotnet version is:
dotnet --version
6.0.100-preview.7.21379.14
Basic Information
- Version with issue:
- Last known good version:
- IDE:
- Platform Target Frameworks:
- iOS:
- Android:
- UWP:
- Android Support Library Version:
- Nuget Packages:
- Affected Devices:
Screenshots
Reproduction Link
Workaround
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
MAUI Templates are missing in VS 2022 17.3.0 Preview 1.1
MAUI is incompatible with .NET 7 so you might want to uninstall it. Got the same VS version and I got all the...
Read more >.net MAUI templates not in Visual Studio 2022 community - ...
MAUI is installed. It was working fine and then I installed the professional version instead of community and then it was gone. I've...
Read more >How to get missing .NET MAUI templates in Visual Studio?
Net MAUI template was not accessible from the “Create a new project” screen in Visual Studio. The short answer is that my Visual...
Read more >Troubleshoot known issues - .NET MAUI
In this article. Can't locate the .NET MAUI workloads; Platform version isn't present; Type or namespace 'Default' doesn't exist ...
Read more >NET MAUI WPF template not working
Hello. I had a problem with MAUI templates disappearing. It is not the first time it happens. I tried reinstalling several times even...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Problem solved:
I should install maui as follow:
dotnet new --install Microsoft.Maui.Templates
Now MAUI template is available in VS2022 and also .net CLI is working.
Glad that you figured it out! Thanks for letting me know!