Skip to content

It's also not possible to run two instances of the app simultaneously in ElectronNET.Core with AspNet #901

@FrankBoehringerKirchner

Description

@FrankBoehringerKirchner
  • ElectronNET.Core: 0.0.18
  • ElectronNET.Core.API: 0.0.18
  • ElectronNET.Core.AspNet: 0.0.18
  • dotnet: 8
  • nodejs: v22.19.0
  • Target: Windows

When publishing the electronNET app and running it twice (even with a pause between opening the app again and singleInstance turned off) another instance of the app doesn't open, but rather focuses the already open instance. Single Mode is turned off in the csproj:
Image
and when building the app, this is also reflected in the generated package.json.

The only log when you start the application again is:
Entry!!!:

I've also tried it with the unpackaged exe after a build to see if singleInstance mode is really turned off by changing the main.js to log the singleInstance variable it uses. And although it is turned off and the app has the exact same behaviour, I get more logs in the console:

Image

** Steps to Reproduce: **

  1. Create an app using ElectronNET.Core
  2. change singleInstance to false in the csproj as seen in the image
  3. publish the project
  4. open the generated exe once and wait for it to open
  5. open the generated exe again

PS: so happy to see this project progress :) Thanks for the awesome work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions