Can Visual Studio restart IIS Express on new debugging session?

后端 未结 2 1720
北海茫月
北海茫月 2020-12-14 10:10

I have an ASP.Net application that performs some database initialization during Application_Start in Global.asax. I\'m using IIS Express to debug the application.

I

2条回答
  •  渐次进展
    2020-12-14 10:32

    You can use a Powershell one-liner to avoid relying on an external app:

    powershell -NoProfile -Command (Get-Item "\Web.config").lastwritetime=(Get-Date)

    Original inspiration comes from here...

提交回复
热议问题