ElectronNET / Electron.NET

:electron: Build cross platform desktop apps with ASP.NET Core (Razor Pages, MVC, Blazor).
https://gitter.im/ElectronNET/community
MIT License
7.25k stars 723 forks source link

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

Open win32nipuh opened 5 years ago

win32nipuh commented 5 years ago

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

GregorBiswanger commented 5 years ago

Thank you very much for your support!

hojlind commented 4 years ago

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

srameh commented 3 years ago

This fixed my problem. Thank you very much!