Content-Length: 414366 | pFad | http://github.com/ElectronNET/Electron.NET/commit/b4532788030cfe671d09f00448f4b9209aa48506

55 Update to new Electron.NET 23.6.1 · ElectronNET/Electron.NET@b453278 · GitHub
Skip to content

Commit b453278

Browse files
Update to new Electron.NET 23.6.1
1 parent a244382 commit b453278

File tree

1 file changed

+45
-5
lines changed

1 file changed

+45
-5
lines changed

README.md

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ AppVeyor (Win/Linux): [![Build status](https://ci.appveyor.com/api/projects/stat
99

1010
Travis-CI (Win/macOS/Linux): [![Build Status](https://travis-ci.org/ElectronNET/Electron.NET.svg?branch=master)](https://travis-ci.org/ElectronNET/Electron.NET)
1111

12-
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).
1313

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.
1515

1616
The CLI extensions hosts our toolset to build and start Electron.NET applications.
1717

@@ -26,11 +26,11 @@ Well... there are lots of different approaches how to get a X-plat desktop app r
2626

2727
## 🛠 Requirements to run:
2828

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).
3030

3131
Also you should have installed:
3232

33-
* npm [contained in nodejs](https://nodejs.org)
33+
* npm [contained in nodejs (at least Version 16.17.1)](https://nodejs.org)
3434

3535
## 💬 Community
3636

@@ -49,6 +49,35 @@ To activate and communicate with the "native" (sort of native...) Electron API i
4949
````
5050
PM> Install-Package ElectronNET.API
5151
````
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+
using ElectronNET.API;
59+
using ElectronNET.API.Entities;
60+
61+
var builder = 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)
65+
builder.Services.AddElectron();
66+
67+
var app = builder.Build();
68+
69+
...
70+
71+
await app.StartAsync();
72+
73+
// Open the Electron-Window here
74+
Task.Run(async () => await Electron.WindowManager.CreateWindowAsync());
75+
76+
app.WaitForShutdown();
77+
```
78+
79+
## Conventional
80+
5281
### Program.cs
5382

5483
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.
152181

153182
### Note
154183
> 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+
```
155192

156193
## 👨‍💻 Authors
157194

158195
* **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)
159197
* **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)
160198

161199
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
185223
MIT-licensed
186224

187225
**Enjoy!**
188-
226+
227+
228+
189229
## 📝 Important notes
190230

191231
### ElectronNET.API & ElectronNET.CLI Version 9.31.2

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/ElectronNET/Electron.NET/commit/b4532788030cfe671d09f00448f4b9209aa48506

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy