Electron.App.IsReady returns false, but the ASP.NET Core app is only launched after the app.ready event fires. #658

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

Originally created by @The-MAZZTer on GitHub (Apr 15, 2021).

Originally assigned to: @GregorBiswanger on GitHub.

  • Version:
  • 9.31.2 (latest version compatible with .NET Core 3.1)

.NET Core 3.1

  • Target:
    Windows

It looks like electron host's main.js only launches the ASP.NET Core application once the app.ready event fires. However in my Startup class constructor, Electron.App.IsReady returns false. I suspect this is simply because the IO bridge between electron host and ElectronNET classes isn't connected yet, but given electron is already ready, isReady shouldn't ever really be false.

Unless IsReady is meant to reflect the state of the IO bridge. But then it could easily mislead devs who think it is a reflection of app.ready. For example, trying to set the UserData path won't work since electron is already using the old path by the time the ASP.NET Core application launches.

Originally created by @The-MAZZTer on GitHub (Apr 15, 2021). Originally assigned to: @GregorBiswanger on GitHub. * **Version**: * 9.31.2 (latest version compatible with .NET Core 3.1) .NET Core 3.1 * **Target**: Windows It looks like electron host's main.js only launches the ASP.NET Core application once the app.ready event fires. However in my Startup class constructor, Electron.App.IsReady returns false. I suspect this is simply because the IO bridge between electron host and ElectronNET classes isn't connected yet, but given electron is already ready, isReady shouldn't ever really be false. Unless IsReady is meant to reflect the state of the IO bridge. But then it could easily mislead devs who think it is a reflection of app.ready. For example, trying to set the UserData path won't work since electron is already using the old path by the time the ASP.NET Core application launches.
claunia added the bug label 2026-01-29 16:45:23 +00:00
Author
Owner

@GregorBiswanger commented on GitHub (Mar 28, 2023):

🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉

With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!

@GregorBiswanger commented on GitHub (Mar 28, 2023): 🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉 With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#658