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.

[Bug] .NET MAUI templates not available

See original GitHub issue

Description

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:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mans0987commented, Aug 30, 2021

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.

0reactions
jfversluiscommented, Aug 30, 2021

Glad that you figured it out! Thanks for letting me know!

Read more comments on GitHub >

github_iconTop 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 >

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