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
Build cross platform desktop apps with .NET 5 and ASP.NET NET Core (Razor Pages, MVC), Blazor.
12
+
Build cross platform desktop apps with .NET 6 and Blazor, ASP.NET Core (Razor Pages, MVC).
13
13
14
-
Electron.NET is a __wrapper__ around a "normal" Electron application with an embedded ASP.NET Core application. Via our Electron.NET IPC bridge we can invoke Electron APIs from .NET.
14
+
Electron.NET is a __wrapper__ around a native Electron application with an embedded ASP.NET Core application. Via our Electron.NET IPC bridge we can invoke Electron APIs from .NET.
15
15
16
16
The CLI extensions hosts our toolset to build and start Electron.NET applications.
17
17
@@ -26,11 +26,11 @@ Well... there are lots of different approaches how to get a X-plat desktop app r
26
26
27
27
## 🛠 Requirements to run:
28
28
29
-
The current Electron.NET CLI builds Windows/macOS/Linux binaries. Our API uses .NET 5, so our minimum base OS is the same as [.NET 5](https://github.com/dotnet/core/blob/master/release-notes/5.0/5.0-supported-os.md).
29
+
The current Electron.NET CLI builds Windows/macOS/Linux binaries. Our API uses .NET 6, so our minimum base OS is the same as [.NET 6](https://github.com/dotnet/core/blob/main/release-notes/6.0/supported-os.md).
30
30
31
31
Also you should have installed:
32
32
33
-
* npm [contained in nodejs](https://nodejs.org)
33
+
* npm [contained in nodejs (at least Version 16.17.1)](https://nodejs.org)
34
34
35
35
## 💬 Community
36
36
@@ -49,6 +49,35 @@ To activate and communicate with the "native" (sort of native...) Electron API i
49
49
````
50
50
PM> Install-Package ElectronNET.API
51
51
````
52
+
53
+
## Minimal-API
54
+
You start Electron.NET up with an `UseElectron` WebHostBuilder-Extension and open the Electron Window:
55
+
### Program.cs
56
+
57
+
```csharp
58
+
usingElectronNET.API;
59
+
usingElectronNET.API.Entities;
60
+
61
+
varbuilder=WebApplication.CreateBuilder(args);
62
+
builder.WebHost.UseElectron(args);
63
+
64
+
// Is optional, but you can use the Electron.NET API-Classes directly with DI (relevant if you wont more encoupled code)
You start Electron.NET up with an `UseElectron` WebHostBuilder-Extension.
@@ -152,10 +181,19 @@ The end result should be an electron app under your __/bin/desktop__ folder.
152
181
153
182
### Note
154
183
> macOS builds can't be created on Windows machines because they require symlinks that aren't supported on Windows (per [this Electron issue](https://github.com/electron-userland/electron-packager/issues/71)). macOS builds can be produced on either Linux or macOS machines.
184
+
185
+
## 🔄 Update
186
+
187
+
After an update to the latest Electron.API package, an update to the latest Electron.CLI is always required. In addition, always update the CLI via NuGet:
188
+
189
+
```
190
+
dotnet tool update ElectronNET.CLI -g
191
+
```
155
192
156
193
## 👨💻 Authors
157
194
158
195
***Gregor Biswanger** - (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)
196
+
***Dr. Florian Rappl** - Software Developer - from Munich, Germany. Microsoft MVP & Web Geek. - [Florian Rappl](https://florianrappl.de) - Twitter [@florianrappl](https://twitter.com/florianrappl)
159
197
***Robert Muehsig** - 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)
160
198
161
199
See also the list of [contributors](https://github.com/ElectronNET/Electron.NET/graphs/contributors) who participated in this project.
@@ -185,7 +223,9 @@ We do this open source work in our free time. If you'd like us to invest more ti
185
223
MIT-licensed
186
224
187
225
**Enjoy!**
188
-
226
+
227
+
228
+
189
229
## 📝 Important notes
190
230
191
231
### ElectronNET.API & ElectronNET.CLI Version 9.31.2
0 commit comments