Skip to content

Blazor Desktop

Eilon Lipton edited this page Jun 10, 2021 · 14 revisions

Blazor Desktop

  1. Install required .NET MAUI dependencies using the maui-check tool as described in the samples repo.
  2. Use one of the following solutions to build the code or run the samples:
    • BlazorWindows-net6.sln: For .NET MAUI WinUI, WPF, and Windows Forms
    • BlazorNonWindows-net6.sln: For .NET MAUI Android, iOS, and Mac Catalyst
    • Note: The BlazorWindowsDesktop-net6.sln solution is for CI/build purposes only.
  3. To change the samples to use Blazor UI instead of native UI, edit these files:
    • For multi-project samples, edit src/Controls/samples/Controls.Sample/Startup.cs and set _pageType = PageType.Blazor
    • For single-project samples, edit src/Controls/samples/Controls.Sample.SingleProject/Startup.cs and set UseBlazor = true
Clone this wiki locally