- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 736
Closed
Labels
Description
- Version: commit id 9a615ca
- Target: .net 8, Node.js v20.19.0, running on Windows 10 x64
Steps to Reproduce:
- Clone the mainbranchhttps://github.com/ElectronNET/Electron.NET.git
- Open ElectronNET.slnin Visual Studio 2022 and Build in theDebug | Any CPUsolution configuration.
- Open a new Windows Command Prompt
- Run cd .\src\ElectronNET.WebApp
- Run "..\ElectronNET.CLI\bin\Debug\net8.0\dotnet-electronize.exe" build /target win /dotnet-configuration Debug /p:SelfContained=false /p:BuildProjectReferences=false
- Run cd .\src\ElectronNET.WebApp\bin\Desktop\win-unpacked
- Run "ElectronNET API Demos.exe"
- Close the "ElectronNET API Demo" window
- Notice the process is still running and I have to press Ctrl+Cto close the process.
The issue also occurs if I try to exit the program even before calling Electron.WindowManager.CreateWindowAsync.
I expected the process to exit when all windows are closed, since Electron.WindowManager.IsQuitOnWindowAllClosed is set to true by default.
If I double-click the exe from Windows Explorer, the issue doesn't occur.
As other issues mention, I even tried:
Electron.WindowManager.IsQuitOnWindowAllClosed = false;
Electron.App.WindowAllClosed += () => Electron.App.Exit();
browserWindow.OnClosed += () =>
{
    Electron.App.Exit(0);
    Environment.Exit(0);
    Electron.App.Quit();
};
Seems related, but the issues are closed, and don't mention running on the command line:
#68
#226
#338
#346
#364
#594
 
Thank you.