Can start on Windows but not on Linux?! #231

Open
opened 2026-01-29 16:34:22 +00:00 by claunia · 0 comments
Owner

Originally created by @thamathar on GitHub (Nov 26, 2018).

Hello everyone.

I'm new to Electron so bare this in mind :D

I did all in Windows using Visual Studio 2017 and works without any problem on Windows, but when I pass the project into Linux (Ubuntu 18.04) I can't get this to start.

I did

dotnet restore
Did go without any problems.

dotnet electronize init
Did go without any problems.

But when I do

dotnet electronize start
I get this

owdasy@Antonio-VirtualBox:~/Electron/ElectronSecondApp/ElectronSecondApp$ dotnet electronize start Start Electron Desktop Application... Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core Copyright (C) Microsoft Corporation. All rights reserved. Restore completed in 71.24 ms for /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/ElectronSecondApp.csproj. Restore completed in 3.37 ms for /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/ElectronSecondApp.csproj. ElectronSecondApp -> /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/bin/Debug/netcoreapp2.0/linux-x64/ElectronSecondApp.dll ElectronSecondApp -> /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/bin/ Skip npm install, because node_modules directory exists in: /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/node_modules Invoke electron - in dir: /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/node_modules/.bin /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/node_modules/electron/dist/electron.exe: 1: /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/node_modules/electron/dist/electron.exe: MZ����@H��: not found /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/node_modules/electron/dist/electron.exe: 2: /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/node_modules/electron/dist/electron.exe: Syntax error: Unterminated quoted string owdasy@Antonio-VirtualBox:~/Electron/ElectronSecondApp/ElectronSecondApp$

Originally created by @thamathar on GitHub (Nov 26, 2018). Hello everyone. I'm new to Electron so bare this in mind :D I did all in Windows using Visual Studio 2017 and works without any problem on Windows, but when I pass the project into Linux (Ubuntu 18.04) I can't get this to start. I did > dotnet restore Did go without any problems. > dotnet electronize init Did go without any problems. But when I do > dotnet electronize start I get this `owdasy@Antonio-VirtualBox:~/Electron/ElectronSecondApp/ElectronSecondApp$ dotnet electronize start Start Electron Desktop Application... Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core Copyright (C) Microsoft Corporation. All rights reserved. Restore completed in 71.24 ms for /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/ElectronSecondApp.csproj. Restore completed in 3.37 ms for /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/ElectronSecondApp.csproj. ElectronSecondApp -> /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/bin/Debug/netcoreapp2.0/linux-x64/ElectronSecondApp.dll ElectronSecondApp -> /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/bin/ Skip npm install, because node_modules directory exists in: /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/node_modules Invoke electron - in dir: /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/node_modules/.bin /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/node_modules/electron/dist/electron.exe: 1: /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/node_modules/electron/dist/electron.exe: MZ����@H��: not found /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/node_modules/electron/dist/electron.exe: 2: /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/node_modules/electron/dist/electron.exe: Syntax error: Unterminated quoted string owdasy@Antonio-VirtualBox:~/Electron/ElectronSecondApp/ElectronSecondApp$`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#231