It starts, but no window appears, when I am not using 'electronize build /trarget linux' #802

Closed
opened 2026-01-29 16:49:02 +00:00 by claunia · 1 comment
Owner

Originally created by @WakanaYuki on GitHub (Jun 8, 2022).

Version: 13.5.1.0

.NET Core Version: 5.0.408 (also tried 6.0.102)
Node.js Version: v18.3.0
npm version: 8.11.0

Target: Linux

Steps to Reproduce:

  1. create new project
  2. import Electron.NET like in readme
  3. try to run 'electronize start' or 'electronize start /watch'

This is the output:
./electron "../../main.js" --watch=true
Electron Socket IO Port: 8000
Electron Socket started on port 8000 at 127.0.0.1
ASP.NET Core Watch Port: 8001

After the console prints this nothing else happens. No electron window opens. I have waited an hour, running it in the background and no electron window ever started. There are electron processes starting in the background (can be seen in htop ot kSysGuard), but no electron window ever opens!

Also, when using 'electronize build /trarget linux' it runs an electron window, when starting the output binary.

Originally created by @WakanaYuki on GitHub (Jun 8, 2022). **Version**: 13.5.1.0 <!-- Which version of .NET Core and Node.js are you using (if applicable)? --> **.NET Core Version**: 5.0.408 (also tried 6.0.102) **Node.js Version**: v18.3.0 **npm version**: 8.11.0 **Target**: Linux Steps to Reproduce: 1. create new project 2. import Electron.NET like in readme 3. try to run 'electronize start' or 'electronize start /watch' This is the output: ./electron "../../main.js" --watch=true Electron Socket IO Port: 8000 Electron Socket started on port 8000 at 127.0.0.1 ASP.NET Core Watch Port: 8001 After the console prints this nothing else happens. No electron window opens. I have waited an hour, running it in the background and no electron window ever started. There are electron processes starting in the background (can be seen in htop ot kSysGuard), but no electron window ever opens! Also, when using 'electronize build /trarget linux' it runs an electron window, when starting the output binary.
claunia added the bug label 2026-01-29 16:49:02 +00:00
Author
Owner

@WakanaYuki commented on GitHub (Jun 8, 2022):

Turns out that the dotnet installer did not install the asp.net core runtime.
Rider did run everything, but when I tried dotnet run it gave me a missing runtime error.

Installing aspnetcore-runtime fixed the problem for me.
If you ever run into this issue, please try running dotnet run and see if any runtime errors occur, they may cause this problem.

@WakanaYuki commented on GitHub (Jun 8, 2022): Turns out that the dotnet installer did not install the asp.net core runtime. Rider did run everything, but when I tried dotnet run it gave me a missing runtime error. **Installing aspnetcore-runtime fixed the problem for me.** If you ever run into this issue, please try running dotnet run and see if any runtime errors occur, they may cause this problem.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#802