Electron.NET icon indicating copy to clipboard operation
Electron.NET copied to clipboard

How to upgrade existing app to new ElectronNET.API?

Open win32nipuh opened this issue 5 years ago • 3 comments

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(!)

win32nipuh avatar Jul 30 '19 14:07 win32nipuh

Thank you very much for your support!

GregorBiswanger avatar Jul 30 '19 14:07 GregorBiswanger

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

hojlind avatar Jul 16 '20 13:07 hojlind

This fixed my problem. Thank you very much!

srameh avatar May 22 '21 15:05 srameh