You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ElectronNET.Core represents a fundamental modernization of Electron.NET, addressing years of accumulated pain points while preserving full API compatibility. This isn't just an update—it's a complete rethinking of how .NET developers build and debug cross-platform desktop applications with Electron.
9
+
`ElectronNET.Core` represents a fundamental modernization of Electron.NET, addressing years of accumulated pain points while preserving full API compatibility. This isn't just an update — it's a complete rethinking of how .NET developers build and debug cross-platform desktop applications with Electron.
10
10
11
-
Read more: [**What's New in ElectronNET.Core**](wiki/What's-New)
12
-
13
-
14
-
Build cross platform desktop applications with .NET 6/8 - from console apps to ASP.Net Core (Razor Pages, MVC) to Blazor
11
+
Read more: [**What's New in `ElectronNET.Core`**](https://github.com/ElectronNET/Electron.NET/wiki/What's-New)
15
12
13
+
Build cross platform desktop applications with .NET 6/8/10 - from console apps to ASP.NET Core (Razor Pages, MVC) to Blazor.
16
14
17
15
## Wait - how does that work exactly?
18
16
19
-
Well... there are lots of different approaches how to get a X-plat desktop app running. Electron.NET provides a range of ways to build .NET based solutions using Electron at the side of presentation. While the classic Electron.Net setup, using an ASP.Net host ran by the Electron side is still the primary way, there's more flexibility now: both, dotnet and Electron are now able to launch the other for better lifetime management, and when you don't need a local web server - like when running content from files or remote servers, you can drop the ASP.Net stack altogether and got with a lightweight console app instead.
17
+
Well... there are lots of different approaches how to get a X-plat desktop app running. Electron.NET provides a range of ways to build .NET based solutions using Electron at the side of presentation.
20
18
21
-
## 📦 NuGet
19
+
While the classic Electron.NET setup, using an ASP.NET host ran by the Electron side is still the primary way, there's more flexibility now: both, dotnet and Electron are now able to launch the other for better lifetime management, and when you don't need a local web server - like when running content from files or remote servers, you can drop the ASP.NET stack altogether and got with a lightweight console app instead.
minimum base OS is the same as [.NET 6](https://github.com/dotnet/core/blob/main/release-notes/6.0/supported-os.md) / [.NET 8](https://github.com/dotnet/core/blob/main/release-notes/8.0/supported-os.md).
35
-
* NodeJS (at least [Version 22.x](https://nodejs.org))
29
+
You should have installed:
36
30
31
+
* .NET 6/8 or later.
32
+
* The minimum base OS is the same as [.NET 6](https://github.com/dotnet/core/blob/main/release-notes/6.0/supported-os.md) / [.NET 8](https://github.com/dotnet/core/blob/main/release-notes/8.0/supported-os.md).
33
+
* Node.JS using at least [Version 22.x](https://nodejs.org).
37
34
38
-
## 👩🏫 Usage with ASP.Net
35
+
## 👩🏫 Usage with ASP.NET
39
36
40
-
- Create a new ASP.Net Core project
41
-
- Install the following two nuget packages:
37
+
- Create a new ASP.NET Core project
38
+
- Install the following two NuGet packages:
42
39
43
40
```ps1
44
41
dotnet add package ElectronNET.Core
45
42
46
43
dotnet add package ElectronNET.Core.AspNet
47
44
```
48
45
49
-
### Enable Electron.NET on Startup
46
+
### Classic ASP.NET Core
47
+
48
+
#### Enable Electron.NET on Startup
50
49
51
50
To do so, use the `UseElectron` extension method on a `WebApplicationBuilder`, an `IWebHostBuilder` or any descendants.
52
51
53
52
> [!NOTE]
54
53
> New in Electron.NET Core is that you provide a callback method as an argument to `UseElectron()`, which ensures that you get to know the right moment to set up your application UI.
Just press `F5` in Visual Studio or use dotnet for debugging.
85
119
86
120
## 📔 Usage of the Electron API
87
121
@@ -92,13 +126,11 @@ In this YouTube video, we show you how you can create a new project, use the Ele
92
126
> [!NOTE]
93
127
> The video hasn't been updated for the changes in ElectronNET.Core, so it is partially outdated.
94
128
95
-
96
-
97
129
## 👨💻 Authors
98
130
99
131
***[Gregor Biswanger](https://github.com/GregorBiswanger)** - (Microsoft MVP, Intel Black Belt and Intel Software Innovator) is a freelance lecturer, consultant, trainer, author and speaker. He is a consultant for large and medium-sized companies, organizations and agencies for software architecture, web- and cross-platform development. You can find Gregor often on the road attending or speaking at international conferences. - [Cross-Platform-Blog](http://www.cross-platform-blog.com) - Twitter [@BFreakout](https://www.twitter.com/BFreakout)
100
132
***[Dr. Florian Rappl](https://github.com/FlorianRappl)** - Software Developer - from Munich, Germany. Microsoft MVP & Web Geek. - [The Art of Micro Frontends](https://microfrontends.art) - [Homepage](https://florian-rappl.de) - Twitter [@florianrappl](https://twitter.com/florianrappl)
101
-
*[**softworkz**](https://github.com/softworkz) - full range developer - likes to start where others gave up - MS MVP alumni and Munich citizen as well
133
+
***[softworkz](https://github.com/softworkz)** - Full Range Developer - likes to start where others gave up. MS MVP alumni and Munich citizen as well.
102
134
***[Robert Muehsig](https://github.com/robertmuehsig)** - Software Developer - from Dresden, Germany, now living & working in Switzerland. Microsoft MVP & Web Geek. - [codeinside Blog](https://blog.codeinside.eu) - Twitter [@robert0muehsig](https://twitter.com/robert0muehsig)
103
135
104
136
See also the list of [contributors](https://github.com/ElectronNET/Electron.NET/graphs/contributors) who participated in this project.
@@ -108,7 +140,6 @@ See also the list of [contributors](https://github.com/ElectronNET/Electron.NET/
108
140
Feel free to submit a pull request if you find any bugs (to see a list of active issues, visit the [Issues section](https://github.com/ElectronNET/Electron.NET/issues).
109
141
Please make sure all commits are properly documented.
110
142
111
-
112
143
## 🙏 Donate
113
144
114
145
We do this open source work in our free time. If you'd like us to invest more time on it, please [donate](https://donorbox.org/electron-net). Donation can be used to increase some issue priority. Thank you!
@@ -127,6 +158,4 @@ Any support appreciated! 🍻
127
158
MIT-licensed. See [LICENSE](./LICENSE) for details.
0 commit comments