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