Electron.NET icon indicating copy to clipboard operation
Electron.NET copied to clipboard

Failed to debug/run React with ASP.NET Core app

Open zenith6495 opened this issue 1 month ago • 2 comments

  • Version: 0.2.0
  • Target: .NET 8

Steps to Reproduce:

  1. Create React with ASP.NET Core project using Visual Studio 2022, .NET version selects .NET 8.
  2. The new template separates Client and Server into 2 sub-projects, and it comes with Vite.
  3. I've installed ElectronNET.Core and ElectronNET.Core.AspNet v0.2.0 via nuget in the Server project.
  4. Added the code as suggested in Program.cs file.
  5. When I debug the project in Visual Studio it stucks at this screen and Electron Windows is not launched.
  6. I'm able to access react app in browser when navigate to http://localhost:5173
Image Image Image

zenith6495 avatar Dec 08 '25 10:12 zenith6495

It looks like the project is still building because even the VS interface shows a progress bar in the status bar at the bottom. The first time, it will take quite a while until all electron binaries are downloaded. Maybe try building the server application on its own before running the entire thing.

AeonSake avatar Dec 08 '25 13:12 AeonSake

I agree with @AeonSake . I tried it and there was no problem. In general the installed build-tooling etc. should not matter, but you need to wait until Electron is fully downloaded.

Unfortunately, your bug report misses a couple of relevant details. What version of npm and Node.js are you using?

FlorianRappl avatar Dec 08 '25 18:12 FlorianRappl