Show versions of .Net installed: "dotnet --version" If .Net 9 is missing, try: "winget install --id Microsoft.DotNet.SDK.9 -e"
"dotnet workload list" - Check to see that Workload Id "maui" exist..
If it does not exist run: 1. "dotnet workload update" 2. "dotnet workload install maui"
Command to check if new .Net template for Blazor Hybrid exists: "dotnet new list" (look in list for "maui-blazor-web") Using the new .Net template for Blazor Hybrid-project from command-line: "dotnet new maui-blazor-web -n ProjectName" (easier to use Visual Studio and search for template ".NET MAUI Blazor Hybrid and Web App")
Comments
Blazor and Blazor Hybrid (with MAUI)
New .Net-project "maui-blazor-web" (".NET MAUI Blazor Hybrid and Web App")
https://www.youtube.com/watch?v=ilUohNPqnkU
Show versions of .Net installed: "dotnet --version"
If .Net 9 is missing, try:
"winget install --id Microsoft.DotNet.SDK.9 -e"
"dotnet workload list" - Check to see that Workload Id "maui" exist..
If it does not exist run:
1. "dotnet workload update"
2. "dotnet workload install maui"
Command to check if new .Net template for Blazor Hybrid exists: "dotnet new list" (look in list for "maui-blazor-web")
Using the new .Net template for Blazor Hybrid-project from command-line: "dotnet new maui-blazor-web -n ProjectName"
(easier to use Visual Studio and search for template ".NET MAUI Blazor Hybrid and Web App")
TABLE WITH RESOURCES:
Microsoft learning path "Build web apps with Blazor": https://learn.microsoft.com/en-us/training/paths/build-web-apps-with-blazor/
Video "Learn Blazor Hybrid - Full Course" (Gerald Versluis, 251min): https://www.youtube.com/watch?v=Ou0k5XKcIh4
(in solution "part 6" the element "<FluentMenuProvider />" needs to be added to the file "MainLayout.razor")
Video "Blazor Hybrid (+.NET MAUI) Tutorial for Beginners" (James Montemagno, 45min): https://www.youtube.com/watch?v=lqLfY9zNKNY
Video "Intro to Blazor Hybrid (.NET MAUI Blazor)" (IAmTimCorey, xx min): https://www.youtube.com/watch?v=v36s9snCrXU
Fluent UI Blazor library: https://www.fluentui-blazor.net/
AlohaKit.Controls for MAUI: https://github.com/jsuarezruiz/AlohaKit.Controls
.NET MAUI Community Toolkit: https://github.com/CommunityToolkit/Maui
(useful for styling the "Android status bar"..)
Article ".NET MAUI Blazor - Best practices for mobile UI": https://dev.to/mhrastegari/net-maui-blazor-best-practices-for-mobile-ui-4def
If Visual Studio shows an error:
"The project needs to be deployed before we can debug.
Please enable Deploy in the Configuration Manager." (DEP1000)
Check path in error message, if it is longer than 264 characters try to shorten the folder-names in the repository.
Or check this article: https://crodrigues.com/maui-blazor-hybrid-fixing-the-this-project-needs-to-be-deployed-before-we-can-debug-error/
If Visual Studio shows an error that Android Emulator cannot be started, check this article on Hyper-V and AEHD:
(when using AEHD make sure Hyper-V is turned off.)
https://learn.microsoft.com/en-us/dotnet/maui/android/emulator/hardware-acceleration?view=net-maui-9.0
(download https://github.com/google/android-emulator-hypervisor-driver/releases and run "silent_install.bat" (verify installation using "sc query aehd")