mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Electron.NET doesn't work with dotnet 8.0 on Mac M1 ? #931
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pedropuchalski on GitHub (Feb 9, 2024).
(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.
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
@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.@titanix commented on GitHub (Sep 28, 2024):
Same issue on macOS with M1 Pro, and the command given by sajmonr doesn't work.
@FlorianRappl commented on GitHub (Oct 31, 2025):
Outdated - use
ElectronNET.CoreandElectronNET.Core.AspNet.See Wiki / What's New.