C
C#16mo ago
ogie1985

❔ Is it possible to create an desktop application with Blazor?

Basically title
42 Replies
Thinker
Thinker16mo ago
I think you could use Electron, the same technology that Discord uses
sibber
sibber16mo ago
ASP.NET Core Blazor Hybrid
Explore ASP.NET Core Blazor Hybrid, a way to build interactive client-side web UI with .NET in an ASP.NET Core app.
ogie1985
ogie198516mo ago
Problem is with blazor hybrid it uses some wpf shit This is something I have never heard before
sibber
sibber16mo ago
yeah just to host the webview you use either the wpf shot, winforms shit, or maui shit which also supports mobile electron is probably the most popular cross plat gui framework currently but idk if blazor would work with electron electron basically bundles chromium with your app thats how its cross plat
ogie1985
ogie198516mo ago
I'm not familiar with that stuff but I assume it's some library i can use so it acts transforms to a desktop app?
sibber
sibber16mo ago
electron? its more than a lib its a complete framework
ogie1985
ogie198516mo ago
Never used it before So if something like Electron exists why is Microsoft trying to make stuff with maui
sibber
sibber16mo ago
the big downside of electron is large app size and huge memory consumption look at how much memory discord is using right now
ogie1985
ogie198516mo ago
1.1 gb
sibber
sibber16mo ago
lol what discord is using a gig?
ogie1985
ogie198516mo ago
Yeah.. it's a bit much true. But I don't rly care too much about ram yh lol
sibber
sibber16mo ago
for me its usually 200-400 MB
ogie1985
ogie198516mo ago
sibber
sibber16mo ago
wow
ogie1985
ogie198516mo ago
not sure why i have 32 bit version
sibber
sibber16mo ago
is there a 64 bit version?
ogie1985
ogie198516mo ago
Was just looking up but I guess the answer is no Ok, I guess I'll give a shot with electron and blazorwasm and see how far I come
ogie1985
ogie198516mo ago
I guess I have to use this lib: https://github.com/ElectronNET/Electron.NET
GitHub
GitHub - ElectronNET/Electron.NET: Build cross platform desktop app...
:electron: Build cross platform desktop apps with ASP.NET Core (Razor Pages, MVC, Blazor). - GitHub - ElectronNET/Electron.NET: Build cross platform desktop apps with ASP.NET Core (Razor Pages, MVC...
ogie1985
ogie198516mo ago
a bit of youtube, a bit of internet I think we'll come far
sibber
sibber16mo ago
id go with maui blazor hybrid since youre using blazor anyway
ogie1985
ogie198516mo ago
I'm anti wpf
sibber
sibber16mo ago
maui isnt wpf
ogie1985
ogie198516mo ago
For some reason it has some xaml stuff in it
sibber
sibber16mo ago
well yeah
ogie1985
ogie198516mo ago
I wish they could just dump that stuff out
sibber
sibber16mo ago
but again, only to host the webview xaml > html i just want tailwind in xaml and were golden
ogie1985
ogie198516mo ago
Let me check maui again real quick
sibber
sibber16mo ago
i wouldnt recommend using maui on its own, i heard its still rough but you want to use blazor, so
ogie1985
ogie198516mo ago
hmm just gonna checkout real quick
ogie1985
ogie198516mo ago
2nd right?
ogie1985
ogie198516mo ago
🤮
sibber
sibber16mo ago
lmao you dont like the folder structure? well, you do you, you can use electron
ogie1985
ogie198516mo ago
Hope I don't ahve to do anything inside that app.xaml first impression looks pretty good tho
ogie1985
ogie198516mo ago
ogie1985
ogie198516mo ago
When adding Electron to blazorwasm we are already getting the first error
ogie1985
ogie198516mo ago
Henkypenky
Henkypenky16mo ago
blazor hybrid uses blazor components not xaml so it's a combination of html, css, js and c# you only need some xaml for the main window i see no point in going for electron.net and blazor wasm when you can just use blazor hybrid the only upside is linux support i guess
ogie1985
ogie198516mo ago
I just wish I could create a desktop app with fully blazor components without seeing other clutter like xaml I assumed Electron could fillfull that wish of me But hey, I guess I can't even get that working
Henkypenky
Henkypenky16mo ago
<:picard_facepalm:616692703685509130>
chef drone builder
There is a library called Photino.Blazor, it is exactly what you want. https://docs.tryphotino.io/Photino-Blazor
Photino Docs - Photino Blazor
Photino Docs - Photino Blazor
ogie1985
ogie198516mo ago
Hmm, might have to look into it
Accord
Accord16mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.