Restart ASP.NET application when folder contents change

后端 未结 2 1341
爱一瞬间的悲伤
爱一瞬间的悲伤 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

    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.

提交回复
热议问题