Migrating to a .NET MAUI Blazor Hybrid App
In the previous section, we created a new Hybrid app, which will serve as a reference for migrating our existing application. Instead of starting from scratch, we can take advantage of both the XAML and Blazor UIs within our current app by adjusting the project configuration. For now, we will implement a combination of XAML and Blazor UIs in a single application and, later on, transition entirely to Blazor in the following chapter.
To convert our app into a .NET MAUI Blazor Hybrid app, it is necessary to implement the following modifications.
Change the SDK in the project file by replacing Microsoft.NET.Sdk
with Microsoft.NET.Sdk.Razor
, as the .NET MAUI Blazor Hybrid app relies on a different SDK.
- In the
PassXYZ.Vault.csproj
project file, the following line is present:<Project Sdk="Microsoft.NET.Sdk">
- This line needs to be replaced with the following:
<Project Sdk="...