Open ontanj opened 10 months ago
@ontanj thanks for contacting us.
That's by design, the spa server only gets automatically stopped when the .NET app launches it. If you start it manually, then it is expected that we don't stop it and you do so too manually.
In this case I am not starting it manually. The VS Code debugger is starting the .NET app which launches the SPA. After stopping the .NET application the SPA process is still running but since I did not start it manually my only option to stop it is to find the right process through the system monitor and kill it. Sorry if that was unclear in any way.
@javiercn
@javiercn can you please take a look at this again as your reply doesn't apply to this case?
Is there an existing issue for this?
Describe the bug
When stopping a ASP.NET Core SPA application after debugging it in VS Code, the SPA server isn't stopped but continues to run in the background.
Expected Behavior
The SPA should be stopped just like the backend server.
Steps To Reproduce
.vscode/launch.json
:.vscode/tasks.json
:To verify that the SPA server is still running, you can try to start it manually and it will complain that the port is in use.
Exceptions (if any)
No response
.NET Version
6.0.120
Anything else?
Process hierarchy while debug is running:
Process hierarchy after debugging has stopped:
When running the application with
dotnet run
the SPA server stops immediately.