You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just started the transition from Xamarin to MAUI due to Xamarin's EOL. One of the things I've done first is to search for Prism template for my Windows 11 Visual Studio 2022 (17.9.2):
dotnet new --install Prism.Templates::8.1.97 --force
Which prompts:
Success: Prism.Templates::8.1.97 installed the following templates:
Template Name Short Name Language Tags
------------------------------- --------------- -------- ------------------------------------------------------------
Prism .NET MAUI App prism-maui [C#] MAUI/Android/iOS/macOS/Mac Catalyst/Windows/Tizen
Prism Blank App (Uno Platform) uno-blank [C#] Prism/Xamarin/Uno Platform/WebAssembly/iOS/Android/WinUI/UWP
Prism Blank App (WPF) wpf-core-blank [C#] Desktop
Prism Blank App (Xamarin.Forms) xf-blank [C#] Prism/Xamarin/Xamarin.Forms
Prism Full App (WPF) wpf-core-full [C#] Desktop
Prism Module (WPF) wpf-module-core [C#] Desktop
Prism Module (Xamarin) xf-module [C#] Prism/Xamarin/Xamarin.Forms
Now I restart my Visual Studio and I select "Create a new project". Now I follow the steps to create a new project using .NET MAUI App (Dan Siegel) template.
Visual Studio now gets stuck on "Creating Project..." and finally crashes after a minute stuck. When I check the selected path, seems it has created a project, but I'm not sure it's usable:
Now I just delete this project and try to create it a different way. Everytime I follow the steps described above I get the same result.
This second time, I open my Visual Studio and instead of pressing "Create a new project", I select "Continue without code". Now I go File > New > Project > Prims .NET MAUI App (Dan Siegel) > Create (at same path as before) and now works as expected. Visual Studio is not crashing and this is how the create project is looking:
Now what I find is the following scenario:
Seems like the project has been created for .NET6.0 and no emulators are showing. Also the Solution Explorer is showing empty.
So I just close Visual Studio and I restart it from double click the project. Now Solution Explorer is working as expected but I can't see any emulator but "Windows Machine":
Also a bunch of compilation errors related to net6.0 (this is my fault since I don't have it installed):
To be able to get rid of this errors, I just double click the solution and replace all "net6.0" instances by "net8.0" from project configuration file. Now I can compile the project with no problems. But still no emulators showing for the different platforms. Also I can't deploy it using "Windows Machine":
If I create the project using the normal .NET MAUI App project template I can see and deploy on my emulators with no problem:
To solve this issue, in my case, I had to replace the SupportedOSPlarformVersions in my project configuration file:
Original one. Can't deploy and no emulators showing:
I really don't understand why ios and maccatalyst versions are making emulators not showing. I guess this is a Visual Studio thing.
Questions
Is anything I'm doing wrong? If I'm not doing anythig wrong, I can go over this process again and deliver all the logs you need. I will be happy to help.
Is there any way of selecting .NET version from all the installed before creating project? Something like the normal .NET MAUI App template. In my case the project is created by default with a .NET version I don't even have installed.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've just started the transition from Xamarin to MAUI due to Xamarin's EOL. One of the things I've done first is to search for Prism template for my Windows 11 Visual Studio 2022 (17.9.2):
dotnet new --install Prism.Templates::8.1.97 --force
Which prompts:
Now I restart my Visual Studio and I select "Create a new project". Now I follow the steps to create a new project using .NET MAUI App (Dan Siegel) template.
Visual Studio now gets stuck on "Creating Project..." and finally crashes after a minute stuck. When I check the selected path, seems it has created a project, but I'm not sure it's usable:
Now I just delete this project and try to create it a different way. Everytime I follow the steps described above I get the same result.
This second time, I open my Visual Studio and instead of pressing "Create a new project", I select "Continue without code". Now I go File > New > Project > Prims .NET MAUI App (Dan Siegel) > Create (at same path as before) and now works as expected. Visual Studio is not crashing and this is how the create project is looking:
Now what I find is the following scenario:
Seems like the project has been created for .NET6.0 and no emulators are showing. Also the Solution Explorer is showing empty.
So I just close Visual Studio and I restart it from double click the project. Now Solution Explorer is working as expected but I can't see any emulator but "Windows Machine":
Also a bunch of compilation errors related to net6.0 (this is my fault since I don't have it installed):
To be able to get rid of this errors, I just double click the solution and replace all "net6.0" instances by "net8.0" from project configuration file. Now I can compile the project with no problems. But still no emulators showing for the different platforms. Also I can't deploy it using "Windows Machine":
If I create the project using the normal .NET MAUI App project template I can see and deploy on my emulators with no problem:
To solve this issue, in my case, I had to replace the SupportedOSPlarformVersions in my project configuration file:
Original one. Can't deploy and no emulators showing:
New one. I can deploy and all emulators showing:
I really don't understand why ios and maccatalyst versions are making emulators not showing. I guess this is a Visual Studio thing.
Questions
Beta Was this translation helpful? Give feedback.
All reactions