How to upgrade existing app to new ElectronNET.API? #368

Closed
opened 2026-01-29 16:37:46 +00:00 by claunia · 4 comments
Owner

Originally created by @win32nipuh on GitHub (Jul 30, 2019).

The problem:

I have an application based on ElectronNET.API 5.22.13 and NET.Core 2.1 (ElectronNET.API requires this version).

The new version ElectronNET.API 5.22.14 is released and I need to upgrade my app to this package.
It requires NET Core 2.2. I have changed the NET Core 2.1 -> NET Core 2.2 in the project properties, then updated the ElectronNET.API to 5.22.14.
Then try to run

electronize start
the app is built but it hangs at >...\obj\Host\node_modules.bin>electron.cmd "....\main.js"
what is wrong?
I have checked folder
\obj\Host\node_modules.bin
It contains less files than usually.


How to fix it:

  1. Delete the folder \obj\Host.
  2. Uninstall global packages with

npm uninstall electron electron-builder --global

After these actions:

electronize start
and app runs successfully(!)

Originally created by @win32nipuh on GitHub (Jul 30, 2019). **The problem:** I have an application based on ElectronNET.API 5.22.13 and NET.Core 2.1 (ElectronNET.API requires this version). The new version ElectronNET.API 5.22.14 is released and I need to upgrade my app to this package. It requires NET Core 2.2. I have changed the NET Core 2.1 -> NET Core 2.2 in the project properties, then updated the ElectronNET.API to 5.22.14. Then try to run >electronize start the app is built but it hangs at >...\obj\Host\node_modules.bin>electron.cmd "....\main.js" what is wrong? I have checked folder <Project>\obj\Host\node_modules\.bin It contains less files than usually. ------------------- **How to fix it:** 1. Delete the folder <Project>\obj\Host\. 2. Uninstall global packages with >npm uninstall electron electron-builder --global After these actions: >electronize start and app runs successfully(!)
claunia added the information label 2026-01-29 16:37:46 +00:00
Author
Owner

@GregorBiswanger commented on GitHub (Jul 30, 2019):

Thank you very much for your support!

@GregorBiswanger commented on GitHub (Jul 30, 2019): Thank you very much for your support!
Author
Owner

@hojlind commented on GitHub (Jul 16, 2020):

This still applies, and should definitely have a more prominent place, perhaps in the readme?

@hojlind commented on GitHub (Jul 16, 2020): This still applies, and should definitely have a more prominent place, perhaps in the readme?
Author
Owner

@srameh commented on GitHub (May 22, 2021):

This fixed my problem. Thank you very much!

@srameh commented on GitHub (May 22, 2021): This fixed my problem. Thank you very much!
Author
Owner

@FlorianRappl commented on GitHub (Nov 1, 2025):

Outdated - use ElectronNET.Core and ElectronNET.Core.AspNet.

See Wiki / What's New.

@FlorianRappl commented on GitHub (Nov 1, 2025): Outdated - use `ElectronNET.Core` and `ElectronNET.Core.AspNet`. See [Wiki / What's New](https://github.com/ElectronNET/Electron.NET/wiki/What's-New).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#368