Chapter 12: Hosting an ASP.NET Core Blazor Application in WinUI
Blazor is a web framework from Microsoft that allows .NET developers to create C# web applications with little to no JavaScript code. Server-side Blazor applications were introduced with ASP.NET Core 3.0, and ASP.NET Core 3.2 added the ability to create client-side Blazor web apps with WebAssembly (Wasm). Wasm (https://webassembly.org/) allows runtimes such as .NET and Java to run in web applications in the browser, and it is supported by all the major browser engines. By leveraging the new WebView2
control in WinUI, Windows developers can run a cloud-hosted Blazor application inside their WinUI client application.
In this chapter, we will cover the following topics:
- Learning some basics of client-side .NET development with ASP.NET Core and Blazor
- Creating a Blazor application with Visual Studio Code
- Deploying Blazor applications to Azure static website hosting
- Creating a WinUI application to host...