为什么在重新启动Visual Studio中的调试之前,总是必须在IIS Express中停止我的应用程序?

我正在使用Visual Studio Pro 2019 16.5.5版。它最近(上个月左右,也许从16.4.x开始)开始对使用IIS Express进行开发的ASP.NET Core应用程序执行此奇怪操作。

  1. During a debug session I'll need to make code changes.
  2. I stop debugging in Visual Studio. IIS Express stops hosting.
  3. IIS Express inexplicably restarts my application unattached from VS.
  4. I make the code changes and try to hit Start Debugging.
  5. Visual Studio complains that all the output files are in use: MSB3026 Could not copy "obj\Debug\netcoreapp2.1\blah.dll" to "bin\Debug\netcoreapp2.1\blah.dll". Beginning retry n in 1000ms. The process cannot access the file 'bin\Debug\netcoreapp2.1\blah.dll' because it is being used by another process. The file is locked by: "Visual Studio 2019 Remote Debugger (27568), .NET Core Host (6264)"
  6. I right-click the IIS Express tray icon and click Stop Site under my application.
  7. I try to Start Debugging again in Visual Studio
  8. It brings up this dialog: enter image description here
  9. I hit OK and try again
  10. It finally starts debugging.

真是气死我了我不明白为什么IIS Express会重新启动应用程序。它不是分离的,进程停止,然后立即重新启动,而无需调试。

我可以通过首先停止IIS站点来停止调试来跳过步骤2-5。但这不是它应该如何工作的。

这是某些IIS Express配置吗?我想射击我的笔记本电脑,但随后我会被解雇。