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

MAUI Template not showing up in VS 17.5.2 #14001

Closed
JerryWatsonJr opened this issue Mar 17, 2023 · 13 comments
Closed

MAUI Template not showing up in VS 17.5.2 #14001

JerryWatsonJr opened this issue Mar 17, 2023 · 13 comments
Labels
area-templates Project templates, Item Templates for Blazor and MAUI s/needs-attention Issue has more information and needs another look

Comments

@JerryWatsonJr
Copy link

After updating to 17.5.2 my maui projects will not open. When try to create a new solution the maui template does not show. I am using Windows 10.
Untitled-1
Untitled-2

@drasticactions
Copy link
Contributor

If you go to your CLI and type dotnet new --list do you see the MAUI templates? If not, can you run dotnet workload install maui?

@drasticactions drasticactions added the s/needs-info Issue needs more info from the author label Mar 17, 2023
@ghost
Copy link

ghost commented Mar 17, 2023

Hi @JerryWatsonJr. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@jsuarezruiz jsuarezruiz added the area-templates Project templates, Item Templates for Blazor and MAUI label Mar 17, 2023
@JerryWatsonJr
Copy link
Author

I get the following error:

Untitled-3

@JerryWatsonJr
Copy link
Author

Untitled-3

@JerryWatsonJr JerryWatsonJr reopened this Mar 17, 2023
@ghost ghost added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels Mar 17, 2023
@Vikas8881
Copy link

did you try to update the window?

@jfversluis
Copy link
Member

The error is very strange with the workload install, but it seems the workload is installed. Could you try to just to dotnet new install Microsoft.Maui.Templates? That should only install the templates and also make them show up in Visual Studio.

@jfversluis jfversluis added s/needs-info Issue needs more info from the author and removed s/needs-attention Issue has more information and needs another look labels Mar 18, 2023
@ghost
Copy link

ghost commented Mar 18, 2023

Hi @JerryWatsonJr. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@JerryWatsonJr
Copy link
Author

I have wasted enough time. I just changed to 17.4.2 and everything works. Thanks

@ghost ghost added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels Mar 18, 2023
@AndreasReitberger
Copy link

AndreasReitberger commented Mar 19, 2023

@JerryWatsonJr
I also had this issue. I figured out that there where two dotnet SDK path version listed in my environment variables somehow after the update.
There I deleted the entry leading to the Program Files (x86). After that, VS took the right SDK and it was working again.
Maybe it helps you as well ;)

@JerryWatsonJr
Copy link
Author

@JerryWatsonJr I also had this issue. I figured out that there where two dotnet SDK path version listed in my environment variables somehow after the update. There I deleted the entry leading to the Program Files (x86). After that, VS took the right SDK and it was working again. Maybe it helps you as well ;)

I do not have two, only Program Files (not x86). Thanks anyway.

@JerryWatsonJr
Copy link
Author

JerryWatsonJr commented Mar 20, 2023

@jfversluis

PS C:\WINDOWS\system32> dotnet new install Microsoft.Maui.Templates
The following template packages will be installed:
Microsoft.Maui.Templates

Error: Failed to retrieve template packages from provider 'Optional workloads'.
Details: Invalid numeric identifier: '300_bak'.
Error: Failed to retrieve template packages from provider 'Optional workloads'.
Details: Invalid numeric identifier: '300_bak'.
Success: Microsoft.Maui.Templates::6.0.312 installed the following templates:
Template Name Short Name Language Tags


.NET MAUI App maui [C#] MAUI/Android/iOS/macOS/Mac Catalyst/Windows/Tizen
.NET MAUI Blazor App maui-blazor [C#] MAUI/Android/iOS/macOS/Mac Catalyst/Windows/Tizen/Blazor
.NET MAUI Class Library mauilib [C#] MAUI/Android/iOS/macOS/Mac Catalyst/Windows/Tizen
.NET MAUI ContentPage (C#) maui-page-csharp [C#] MAUI/Android/iOS/macOS/Mac Catalyst/WinUI/Tizen/Xaml/Code
.NET MAUI ContentPage (XAML) maui-page-xaml [C#] MAUI/Android/iOS/macOS/Mac Catalyst/WinUI/Tizen/Xaml/Code
.NET MAUI ContentView (C#) maui-view-csharp [C#] MAUI/Android/iOS/macOS/Mac Catalyst/WinUI/Tizen/Xaml/Code
.NET MAUI ContentView (XAML) maui-view-xaml [C#] MAUI/Android/iOS/macOS/Mac Catalyst/WinUI/Tizen/Xaml/Code
.NET MAUI ResourceDictionary ... maui-dict-xaml [C#] MAUI/Android/iOS/macOS/Mac Catalyst/WinUI/Xaml/Code

Error: Failed to retrieve template packages from provider 'Optional workloads'.
Details: Invalid numeric identifier: '300_bak'.

@jfversluis
Copy link
Member

As also communicated per email:

Seems like you’re made a backup just to be sure in that folder. Which is a very wise thing to do! But in this case that breaks it. Notice how it says it tries to make a numeric identifier from 300_bak which is obviously not an integer 😊

Either rename that back, delete the folder, or use the safest option and move the folder outside of that folder.

@JerryWatsonJr
Copy link
Author

Well I installed 17.5.3 on my other laptop and it works. So there is something installed on the other laptop that is causing the problem.

@ghost ghost locked as resolved and limited conversation to collaborators Apr 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-templates Project templates, Item Templates for Blazor and MAUI s/needs-attention Issue has more information and needs another look
Projects
None yet
Development

No branches or pull requests

6 participants