Electron with .Net MVC application can be do like desktop application in .NET 9
Loading
Electron with .Net MVC application can be do like desktop application in .NET 9
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Deepika SawantPosted Oct 9, 2025, 3:49 PM
Yes, with .NET 9 and Electron.NET, you can build cross-platform desktop applications using ASP.NET Core MVC—effectively turning your web app into a native-like desktop experience.
Electron.NET is a wrapper around the Electron framework that allows .NET developers to embed ASP.NET Core applications (including MVC, Razor Pages, and Blazor) inside a native shell. This enables you to build desktop apps using familiar web technologies while leveraging .NET’s power and tooling.
How It Works
ElectronNET.APINuGet package.Setup Overview
To build a desktop app with ASP.NET MVC and Electron.NET in .NET 9:
Install Prerequisites:
dotnet tool install ElectronNET.CLI -g)Create ASP.NET Core MVC App:
Add Electron.NET NuGet Package:
Configure Program.cs:
Launch Electron Window:
Run Electron.NET:
This launches your MVC app inside an Electron window, giving it desktop-like behavior across Windows, macOS, and Linux.
Benefits of Using Electron.NET with .NET 9