C
C#2y ago
ogie1985

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

Basically title
42 Replies
Thinker
Thinker2y ago
I think you could use Electron, the same technology that Discord uses
sibber
sibber2y 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
ogie1985OP2y ago
Problem is with blazor hybrid it uses some wpf shit This is something I have never heard before
sibber
sibber2y 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
ogie1985OP2y 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
sibber2y ago
electron? its more than a lib its a complete framework
ogie1985
ogie1985OP2y ago
Never used it before So if something like Electron exists why is Microsoft trying to make stuff with maui
sibber
sibber2y 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
ogie1985OP2y ago
1.1 gb
sibber
sibber2y ago
lol what discord is using a gig?
ogie1985
ogie1985OP2y ago
Yeah.. it's a bit much true. But I don't rly care too much about ram yh lol
sibber
sibber2y ago
for me its usually 200-400 MB
ogie1985
ogie1985OP2y ago
sibber
sibber2y ago
wow
ogie1985
ogie1985OP2y ago
not sure why i have 32 bit version
sibber
sibber2y ago
is there a 64 bit version?
ogie1985
ogie1985OP2y 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
ogie1985OP2y 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
ogie1985OP2y ago
a bit of youtube, a bit of internet I think we'll come far
sibber
sibber2y ago
id go with maui blazor hybrid since youre using blazor anyway
ogie1985
ogie1985OP2y ago
I'm anti wpf
sibber
sibber2y ago
maui isnt wpf
ogie1985
ogie1985OP2y ago
For some reason it has some xaml stuff in it
sibber
sibber2y ago
well yeah
ogie1985
ogie1985OP2y ago
I wish they could just dump that stuff out
sibber
sibber2y ago
but again, only to host the webview xaml > html i just want tailwind in xaml and were golden
ogie1985
ogie1985OP2y ago
Let me check maui again real quick
sibber
sibber2y ago
i wouldnt recommend using maui on its own, i heard its still rough but you want to use blazor, so
ogie1985
ogie1985OP2y ago
hmm just gonna checkout real quick
ogie1985
ogie1985OP2y ago
2nd right?
ogie1985
ogie1985OP2y ago
🤮
sibber
sibber2y ago
lmao you dont like the folder structure? well, you do you, you can use electron
ogie1985
ogie1985OP2y ago
Hope I don't ahve to do anything inside that app.xaml first impression looks pretty good tho
ogie1985
ogie1985OP2y ago
ogie1985
ogie1985OP2y ago
When adding Electron to blazorwasm we are already getting the first error
ogie1985
ogie1985OP2y ago
Henkypenky
Henkypenky2y 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
ogie1985OP2y 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
Henkypenky2y ago
<:picard_facepalm:616692703685509130>
anita
anita2y ago
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
ogie1985OP2y ago
Hmm, might have to look into it
Accord
Accord2y 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.
Want results from more Discord servers?
Add your server