I recently switched from building a project in VS Code to Visual Studio 2019.
In VS Code, the output was routed to the Output window in VS Code.
In Visual Studio 2019, the output goes to a console prompt titled "npm" which must remain open otherwise the program terminates. This happens whether I am debugging the program or not.
How can I prevent this behavior?

You can try the IIS Express launch profile within Visual Studio to run your application instead. Using this profile would not open a separate debugger console while running your application.

IIS Express is usually the default profile used when launching an app from Visual Studio. If not, you can create and configure a launch profile yourself.
The steps are detailed in the following articles:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With