In Visual Studio 2017 and 2019 on Windows, I run dotnet watch run
in the Package Manager Console. It launched kestrel for a dotnet core app, automatically disabled text edit in the console, and displayed a red button to stop command execution, but the button doesn't do anything. Also, the message is being displayed to use Ctrl+C but it doesn't work either.
Now listening on: http://localhost:20436 Application started. Press Ctrl+C to shut down.
Now there is an error when I try to launch the web app in Visual Studio because it is already running.
I couldn't find a command like dotnet stop
only Ctrl+C which doesn't work in this case. I used Process Hacker to kill the dotnet.exe
process but that doesn't seem right. What would be the best way to kill the running process?
由于此停止选项不起作用,这显然是一个错误。如果我需要跑步dotnet watch run
我通常只是在 VS 之外的当前文件夹中打开命令行并从那里运行它。自从dotnet watch run
与 Visual Studio 无关(无调试),这是有道理的。或者,您可以使用绿色按钮在带有调试器的 Visual Studio 中运行。但是,这意味着您无法在测试时编辑代码。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)