Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET Core Blazor Hybrid as single-file application

Some time ago, I build a Blazor Server application and encapsulated it into an Electron.NET app so that I can ship it as a single-file executable.

On Build 2022, Microsoft announced ASP.NET Core Blazor Hybrid with .NET MAUI.

Does anyone know whether a Blazor Hybrid app with .NET MAUI can also be shipped as a single-file executable? Or is it the pseudo-single-file like we have today for ASP.NET Core projects (with exe file and wwwroot folder)?

Thanks in advance!

like image 862
mu88 Avatar asked Sep 17 '25 08:09

mu88


1 Answers

On Windows, .Net Maui targets WinUI 3, and is a “single project MSIX” package.

See Publish a .Net Maui App for Windows.

That is a single file, BUT running it starts an install. So the answer is “yes” if goal is a single file that can be launched,

but “no” if goal is a self-contained executable that runs immediately, without starting an install. If that is goal, open an issue at maui github.

like image 111
ToolmakerSteve Avatar answered Sep 19 '25 21:09

ToolmakerSteve