Electron.NET
Electron.NET copied to clipboard
Failed to debug/run React with ASP.NET Core app
- Version: 0.2.0
- Target: .NET 8
Steps to Reproduce:
- Create React with ASP.NET Core project using Visual Studio 2022, .NET version selects .NET 8.
- The new template separates Client and Server into 2 sub-projects, and it comes with Vite.
- I've installed ElectronNET.Core and ElectronNET.Core.AspNet v0.2.0 via nuget in the Server project.
- Added the code as suggested in Program.cs file.
- When I debug the project in Visual Studio it stucks at this screen and Electron Windows is not launched.
- I'm able to access react app in browser when navigate to http://localhost:5173
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.
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?