Electron Project exe does not exist in desktop folder #698

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

Originally created by @djrichwz on GitHub (Sep 12, 2021).

Originally assigned to: @GregorBiswanger on GitHub.

ElectronNET.API version 13.5.1
Electron Cli version 13.5.1

.net core 5.0

Windows 10

Steps to Reproduce:

  1. run electronize /target win
  2. It builds fine
  3. If I look in bin there is no Desktop folder

I have tried uninstalling both the API and the Cli with no difference. I went back to 11.5.1 and the same issue was still present.

There is a desktop folder under obj/bin folder but that exe just runs a command prompt but doesn't load the Electron window with my app.

If I run in Visual Studio or use electronize start then the app open in the Electron window it is just when I try to build the final exe.

Originally created by @djrichwz on GitHub (Sep 12, 2021). Originally assigned to: @GregorBiswanger on GitHub. ElectronNET.API version 13.5.1 Electron Cli version 13.5.1 .net core 5.0 Windows 10 Steps to Reproduce: 1. run electronize /target win 2. It builds fine 3. If I look in bin there is no Desktop folder I have tried uninstalling both the API and the Cli with no difference. I went back to 11.5.1 and the same issue was still present. There is a desktop folder under obj/bin folder but that exe just runs a command prompt but doesn't load the Electron window with my app. If I run in Visual Studio or use electronize start then the app open in the Electron window it is just when I try to build the final exe.
claunia added the bug label 2026-01-29 16:46:12 +00:00
Author
Owner

@tub5 commented on GitHub (Sep 15, 2021):

Can you please include your electron.manifest.json file

@tub5 commented on GitHub (Sep 15, 2021): Can you please include your `electron.manifest.json` file
Author
Owner

@djrichwz commented on GitHub (Sep 15, 2021):

Hi this is my electron.manifest.json I have tried it on multiple projects and it has the same issue on all of them

{ "executable": "BlazorApp", "splashscreen": { "imageFile": "" }, "name": "BlazorApp", "author": "", "singleInstance": false, "environment": "Production", "build": { "appId": "com.BlazorApp.app", "productName": "BlazorApp", "copyright": "Copyright © 2020", "buildVersion": "1.0.0", "compression": "maximum", "directories": { "output": "../../../bin/Desktop" }, "extraResources": [ { "from": "./bin", "to": "bin", "filter": [ "**/*" ] } ], "files": [ { "from": "./ElectronHostHook/node_modules", "to": "ElectronHostHook/node_modules", "filter": [ "**/*" ] }, "**/*" ] } }

@djrichwz commented on GitHub (Sep 15, 2021): Hi this is my electron.manifest.json I have tried it on multiple projects and it has the same issue on all of them `{ "executable": "BlazorApp", "splashscreen": { "imageFile": "" }, "name": "BlazorApp", "author": "", "singleInstance": false, "environment": "Production", "build": { "appId": "com.BlazorApp.app", "productName": "BlazorApp", "copyright": "Copyright © 2020", "buildVersion": "1.0.0", "compression": "maximum", "directories": { "output": "../../../bin/Desktop" }, "extraResources": [ { "from": "./bin", "to": "bin", "filter": [ "**/*" ] } ], "files": [ { "from": "./ElectronHostHook/node_modules", "to": "ElectronHostHook/node_modules", "filter": [ "**/*" ] }, "**/*" ] } }`
Author
Owner

@serdar-sahin commented on GitHub (Oct 26, 2021):

Hi. I solved the same problem by updating nodejs and electron.

@serdar-sahin commented on GitHub (Oct 26, 2021): Hi. I solved the same problem by updating nodejs and electron.
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#698