Creating a Blazor Wasm application
It’s time to start building the Blazor application that we’ll be running in our WinUI application. We are going to use the .NET CLI and VS Code to create the Blazor project. You can also use Visual Studio 2022 if you prefer the experience of a full-featured IDE:
- Start by opening a Command Prompt with your Terminal application of choice. I will be using Windows Terminal (https://apps.microsoft.com/store/detail/windows-terminal/9N0DX20HK701) with PowerShell 7.3 (https://learn.microsoft.com/powershell/scripting/overview):
Figure 12.3 – Running PowerShell 7.3 in Windows Terminal
- Use the terminal to change the current folder to the location where you keep your projects. My location will be
- Use the following command to create a new Blazor WebAssembly project named
BlazorTasksand hit Enter:
dotnet new blazorwasm -o BlazorTasks. The .NET CLI will create the...