Restart ASP.NET application when folder contents change

后端 未结 2 1340
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-15 03:52

I\'m writing a web application that will have \"plugins\". The plugins will be .DLL files which will export their functionality through predefined interfaces \'n stuff. All

相关标签:
2条回答
  • 2021-01-15 03:57

    IF the plugins directory is under your Bin directory, the web app will automatically be restarted when anything changes.

    0 讨论(0)
  • 2021-01-15 03:57

    The FileSystemWatcher class is a general solution to these kind of problems, and HttpRuntime.UnloadAppDomain(); is one way to restart your app. I think more research/explanation is required: there are many possible solutions.

    Edit: Probling Paths. Nice answer.

    0 讨论(0)
提交回复
热议问题