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

Closed
opened 2026-01-29 16:55:48 +00:00 by claunia · 2 comments
Owner

Originally created by @zenith6495 on GitHub (Dec 8, 2025).

  • 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
Originally created by @zenith6495 on GitHub (Dec 8, 2025). <!-- Please search existing issues to avoid creating duplicates. --> <!-- Which version of Electron.NET CLI and API are you using? --> <!-- Please always try to use latest version before report. --> * **Version**: 0.2.0 <!-- Which version of .NET Core and Node.js are you using (if applicable)? --> <!-- What target are you building for? --> * **Target**: .NET 8 <!-- Enter your issue details below this comment. --> <!-- If you want, you can donate to increase issue priority (https://donorbox.org/electron-net) --> 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** <img width="2553" height="1383" alt="Image" src="https://github.com/user-attachments/assets/a40b80e4-bddc-4fe1-8c46-737d28c95f78" /> <img width="2522" height="1292" alt="Image" src="https://github.com/user-attachments/assets/b70e538e-8518-472f-801d-bc75cd3b1c8f" /> <img width="2488" height="727" alt="Image" src="https://github.com/user-attachments/assets/04832d8e-2fed-44f2-a282-e0ae3b25103c" />
Author
Owner

@AeonSake commented on GitHub (Dec 8, 2025):

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 commented on GitHub (Dec 8, 2025): 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.
Author
Owner

@FlorianRappl commented on GitHub (Dec 8, 2025):

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 commented on GitHub (Dec 8, 2025): 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?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#1030