Electron.NET doesn't work with dotnet 8.0 on Mac M1 ? #931

Closed
opened 2026-01-29 16:52:10 +00:00 by claunia · 3 comments
Owner

Originally created by @pedropuchalski on GitHub (Feb 9, 2024).

  • Version:
    (everything newest)
    NuGet[ ElectronNET.API ] 23.6.1
    NuGet[ ElectronNET.CLI] 23.6.1
    node.js v20.11.0
    Dotnet 8.0.101
    Mac OS: 14.2.1 (23C71) - M1 processor.
  • Target:
    Mac OS, but later will try for Windows too.

I had perfectly working Blazor app contained in electron, but now I can't figure out how to run it - after updating to dotnet 8.0. I have made a new projects from scratch and have exactly the same behaviour:

After running 'electronize start' - the app is somehow starting as its icon is showing in the dock, but there is now Electron window visible - whatever I do or click. Last line at console after run:
...
ElectronHostHook handling started...
Invoke electron - in dir: /Users/pedropuchalski/Downloads/ElectroBlazorApp/obj/Host/node_modules/.bin
./electron "../../main.js"
2024-02-09 15:01:39.300 Electron[8712:1561502] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
Electron Socket IO Port: 8000
Electron Socket started on port 8000 at ::1
ASP.NET Core Port: 8001

So no errors... anything. Example code I use: https://github.com/pedropuchalski/ElectroBlazorApp
fulll StartingLog.txt

Originally created by @pedropuchalski on GitHub (Feb 9, 2024). <!-- Which version of Electron.NET CLI and API are you using? --> <!-- Please always try to use latest version before report. --> * **Version**: (everything newest) NuGet[ ElectronNET.API ] 23.6.1 NuGet[ ElectronNET.CLI] 23.6.1 node.js v20.11.0 Dotnet 8.0.101 Mac OS: 14.2.1 (23C71) - M1 processor. <!-- What target are you building for? --> * **Target**: Mac OS, but later will try for Windows too. <!-- Enter your issue details below this comment. --> <!-- If you want, you can donate to increase issue priority (https://donorbox.org/electron-net) --> I had perfectly working Blazor app contained in electron, but now I can't figure out how to run it - after updating to dotnet 8.0. I have made a new projects from scratch and have exactly the same behaviour: After running 'electronize start' - the app is somehow starting as its icon is showing in the dock, but there is now Electron window visible - whatever I do or click. Last line at console after run: ... ElectronHostHook handling started... Invoke electron - in dir: /Users/pedropuchalski/Downloads/ElectroBlazorApp/obj/Host/node_modules/.bin ./electron "../../main.js" 2024-02-09 15:01:39.300 Electron[8712:1561502] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES. Electron Socket IO Port: 8000 Electron Socket started on port 8000 at ::1 ASP.NET Core Port: 8001 So no errors... anything. Example code I use: https://github.com/pedropuchalski/ElectroBlazorApp [fulll StartingLog.txt](https://github.com/ElectronNET/Electron.NET/files/14222716/StartingLog.txt)
claunia added the bug label 2026-01-29 16:52:10 +00:00
Author
Owner

@sajmonr commented on GitHub (May 2, 2024):

I had the same issue and it was due to the app not detecting arm architecture. Try running electronize start /target custom "osx-arm64;mac" (assuming you have the arm SDK installed). You can see my issue in #820.

@sajmonr commented on GitHub (May 2, 2024): I had the same issue and it was due to the app not detecting arm architecture. Try running `electronize start /target custom "osx-arm64;mac"` (assuming you have the arm SDK installed). You can see my issue in #820.
Author
Owner

@titanix commented on GitHub (Sep 28, 2024):

Same issue on macOS with M1 Pro, and the command given by sajmonr doesn't work.

@titanix commented on GitHub (Sep 28, 2024): Same issue on macOS with M1 Pro, and the command given by sajmonr doesn't work.
Author
Owner

@FlorianRappl commented on GitHub (Oct 31, 2025):

Outdated - use ElectronNET.Core and ElectronNET.Core.AspNet.

See Wiki / What's New.

@FlorianRappl commented on GitHub (Oct 31, 2025): Outdated - use `ElectronNET.Core` and `ElectronNET.Core.AspNet`. See [Wiki / What's New](https://github.com/ElectronNET/Electron.NET/wiki/What's-New).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#931