简体   繁体   中英

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!

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM