When comparing Electron vs ASP.NET Core, the Slant community recommends Electron for most people. In the question“What are the best tools for building cross-platform desktop apps with web technologies?” Electron is ranked 3rd while ASP.NET Core is ranked 5th. The most important reason people chose Electron is:
Github is behind electron and there is a lot of big companies using it to make their cross platform apps.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Healthy community
Github is behind electron and there is a lot of big companies using it to make their cross platform apps.
Pro Active development
Electron receives updates frequently (multiple times each month). For example, the recent updates (as of July 15, 2016) are:
1.2.6 (released July 6)
1.2.5 (released June 23)
1.2.4 (released June 22)
1.2.3 (released June 16)
1.2.2 (released June 8)
Pro learning curve is less
Electron has less learning curve when compare to qt like other options
Pro Great documentation
Electron has a nice website with great documentation. It also features a lot of samples.
Pro Solid API
Pro Fast and getting faster
Thanks to breakthroughs in ROSLYN compiler and the efforts of the .NET COre developer team, code written in C# can reach speeds just a step behind C++.
Pro Multi platform
Can run on Windows, Linux and Mac (also Visual Studio Code editor).
Pro JSON optimization
In .NET Core 2.1 and 3.0, new APIs are added that make it possible to write JSON APIs that require less memory, using Span<T> and UTF8 strings, and improve throughput of applications like Kestrel, ASP.NET Core web server. See also Utf8JsonReader.
Pro Tutorials and documentation quality
Both microsoft and 3rd party tutorials are mostly of high quality and encourage you to use the industry best-practices.
Pro Built-in middleware
Built-in middleware featuring: Authentication, Cookie policy, Health Check, MVC, Session etc.
Pro Hosting
Ability to host on IIS, Nginx, Apache, Docker, or self-host in your own process.
Pro Ease of Use
Pro Security
It is a very secure platform.
Pro Tooling
Both VS and VSCode are powerful free IDEs that are well integrated with ASP.net Core. VS Community also allows for commercial use for projects with less than 5 developers.
Cons
Con Apps can have memory issues
Apps made with Electron are likely to have memory issues unless you specifically design the app with efficient coding.
Con High CPU Usage
Electron Has High CPU Usage
Con Needs to run chromium
Runs chromium in the background which consumes a lot of resources.