Easy Steps to Create a Maui Blazor Hybrid App Using VS Code
Table of contents
This guide explains how to set up and run .NET MAUI apps on Windows and macOS using Visual Studio Code.
Windows Setup
Install Visual Studio Code
Install .NET SDK 9+
Install the .NET MAUI extension in VS Code
Install the MAUI workload:
dotnet workload install mauiCreate a new MAUI Blazor project:
dotnet new maui-blazor -n YourAppNameList available workloads:
dotnet workload searchRun the app on Windows:
dotnet run -f net9.0-windows10.0.19041.0macOS Setup
Install Visual Studio Code
Install .NET SDK 9+
Install the .NET MAUI extension in VS Code
Install Xcode from the App Store
Install the MAUI workload:
dotnet workload install mauiCreate a new MAUI Blazor project:
dotnet new maui-blazor -n YourAppNameList available workloads:
dotnet workload searchRun the app on MacCatalyst:
dotnet build -t:Run -f net9.0-maccatalyst
Notes
VS Code supports building and running, but not full drag-and-drop MAUI UI design.
Xcode is required on macOS for MacCatalyst and iOS builds.
Use
.NET 9or later for MAUI.net9.0-*targets.