Ā© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
1 reply
KuryKat

Trying to use Electron.NET with Blazor Web App

When I tried creating a
Blazor Web App
Blazor Web App
and implementing Electron.NET into it, all I would get was a "White Screen of Death" :catree: I tried several steps that I saw on the internet, but none would lead me anywhere :catsweat: most were still using the (Normal) Setup with
Program.cs
Program.cs
+
Startup.cs
Startup.cs
and I'm using only the
Program.cs
Program.cs
(Minimal) Setup since it is the one that comes with the latest Blazor templates :catthinking: but I couldn't find any useful documentation or examples for the Electron.NET usage :catlost: (Which is kind of a downer :catgasp: it seems like a great thing to use for creating Desktop Applications with Blazor but there's so little information about it...)

The thing is... after hours of failed attempts to fix the issue... I saw someone saying that using the
Blazor Server App
Blazor Server App
fixed it to them, so I tried it and... It worked! :catfine:

But I wanted to know... in case I don't want to use the Server App, for some reason, what should I do to make Electron.NET work with the Web App? :catderp:

šŸ“ Note: I know I could try using .NET MAUI but it does not work for Linux, and I wanted a solution that could give me an application for the three main platforms (Win + mOS + Lin) in order to be fully Multiplatform :catlaugh:
GitHub
GitHub - ElectronNET/Electron.NET: :electron: Build cross platform ...
:electron: Build cross platform desktop apps with ASP.NET Core (Razor Pages, MVC, Blazor). - ElectronNET/Electron.NET
GitHub - ElectronNET/Electron.NET: :electron: Build cross platform ...
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

i need help with .NET Blazor web app cockies
C#CC# / help
5mo ago
Blazor Web App (.NET 8) - Logout functionality with IdentityCore
C#CC# / help
3y ago
ā” Trying to use SyncFusion with Blazor.
C#CC# / help
4y ago
.Net 8 Blazor Web App Identity Framework Help
C#CC# / help
3y ago