All "electronize" commands fail, claiming that dotnet failed even when it does not fail #662

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

Originally created by @zaneclaes on GitHub (May 28, 2021).

I am able to run dotnet publish, dotnet build, and yarn build all without errors. However, when I run electronize start or electronize build, I get a failure:

Error occurred during dotnet publish: 1

I searched and found https://github.com/ElectronNET/Electron.NET/issues/206 but since the above commands work, I'm not sure it applies. Specifically, if I run dotnet publish and then echo $?, it prints 0. However, I still get the error message above if I subsequently run electronize start.

Here is the full log from the electronize start command. I don't see any logs that indicate the reason for the build failure. So I dug thru the source code for this repo and attempted to manually recreate the CLI arguments passed to dotnet. Even still, this command succeeds when run manually:

dotnet publish -r osx.11.0-x64 -c Debug /p:PublishSingleFile=true /p:PublishReadyToRun=true --no-self-contained

Since ElectronNET is swallowing the error, I'm not sure what the problem is.

Which version of Electron.NET CLI and API are you using?

11.5.1 for both.

Which version of .NET Core and Node.js are you using (if applicable)?

Dotnet 5.0.102. Node v15.10.0.

What target are you building for?

I'm developing on Mac OS. I have not yet succeeded in building.

Originally created by @zaneclaes on GitHub (May 28, 2021). I am able to run `dotnet publish`, `dotnet build`, and `yarn build` all without errors. However, when I run `electronize start` or `electronize build`, I get a failure: > Error occurred during dotnet publish: 1 I searched and found https://github.com/ElectronNET/Electron.NET/issues/206 but since the above commands work, I'm not sure it applies. Specifically, if I run `dotnet publish` and then `echo $?`, it prints `0`. However, I still get the error message above if I subsequently run `electronize start`. [Here](https://gist.github.com/zaneclaes/dd11de117101d212848f329ddf0ab611) is the full log from the `electronize start` command. I don't see any logs that indicate the reason for the build failure. So I dug thru the source code for this repo and attempted to manually recreate [the CLI arguments passed to dotnet](https://github.com/ElectronNET/Electron.NET/blob/30941df39c49f82720011c2444f4af4cbd7b8569/ElectronNET.CLI/Commands/StartElectronCommand.cs#L110). Even still, this command succeeds when run manually: ``` dotnet publish -r osx.11.0-x64 -c Debug /p:PublishSingleFile=true /p:PublishReadyToRun=true --no-self-contained ``` Since ElectronNET is swallowing the error, I'm not sure what the problem is. **Which version of Electron.NET CLI and API are you using?** --- `11.5.1` for both. **Which version of .NET Core and Node.js are you using (if applicable)?** --- Dotnet `5.0.102`. Node `v15.10.0`. **What target are you building for?** --- I'm developing on Mac OS. I have not yet succeeded in building.
claunia added the bug label 2026-01-29 16:45:27 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#662