
- Electron app wrapper how to#
- Electron app wrapper code#
- Electron app wrapper free#
The import of jquery at the bottom has been changed. Internet explorer specific css has been removed. This is the hyperspace markup but with two differences The interesting point for me is, that we seem to hit a nerf with this project: There is demand to write X-Plat desktop applications.Once you’ve downloaded and unpacked hyperspace, copy the folder called assets into the root folder of our electron app. Then copy this HTML-markup into our index.html. There are lots of issues open and the project is pretty young, maybe we will find a solution for the above problems, maybe not. Electron app wrapper how to#
Starting a web server inside the app is bad on multiple levels because of security and perf: I agree, there are some ideas how to fix it, but this might take some time.NET Core based WebHost - maybe we will find a solution
Perf will suck: Well… to be honest - the current startup time does really suck, because we not only launch the Electron stuff, but we also need to start the.We still need node.js and Electron.NET is just a wrapper around Electron: Yes, it is.We got some nice comments about the project and (of course) there were some critics.Īs far as I know the current “this is bad, because… “-list is like this:
Electron app wrapper code#
The complete code is OSS and there are two demo repositories. If you are interested, maybe take a look at the ElectronNET-Org on GitHub. Gregor did a fabulous blogpost with a great example.
Now we have a Socket.IO based linked between the launched ASP.NET Core app and the Electron app itself - this is our communication bridge!Īt this point you can write your Standard ASP.NET Core Code and can communicate via our Electron.API wrapper to the Electron app.localhost:8002) and injects the first port as parameter NET Core process with ASP.NET Core port (e.g.
Electron app wrapper free#
The second free port is used for the ASP.NET Core process. The first free port is used inside the Electron app itself. Inside the Electron part two free ports are searched:. We ship a “standard” (more or less blank) Electron app. The basic functionality is not too complex: NET World.įirst steps done, yeah! In the following weeks Gregor was able to “bridge” most Electron APIs and I could help him with the tooling via our dotnet-extension. I went to bed, but Gregor was keen on to build a prototyp and he did it: He was able to launch the ASP.NET Core application inside the electron app and invoke some Electron APIs from the. NET Core.Īfter a little chat we agreed that the best bet would be to use Electron as is and somehow “embed” ASP.NET Core in it. NET Core in general) and - indeed - there are some ideas how to make it, but unfortunatly there is no “official” UI stack available for. Gregor asked me a while ago if it is possible to build desktop apps with ASP.NET Core (or. If you don’t know what Electron is: It helps to build desktop apps written in HTML/CSS/Javascript The idea The last couple of weeks I worked with my buddy Gregor Biswanger on a new project called “ Electron.NET“.Īs you might already guess: It is some sort of bridge between the well known Electron and.