重新启动时,文件夹的内容更改ASP.NET应用程序 [英] Restart ASP.NET application when folder contents change

查看:113
本文介绍了重新启动时,文件夹的内容更改ASP.NET应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在写一个web应用程序,将有插件。该插件将将通过predefined接口'东经东西出口其功能.dll文件。所有.dll文件是一个名为Plugins文件夹中,而ASP.NET应用程序加载它们都在启动时(通过使用Assembly.LoadFrom)。

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 the .DLL files are in a folder called "Plugins", and the ASP.NET application loads them all upon startup (by using Assembly.LoadFrom).

问题是,开发时,这些插件会相当频繁改变(所有的功能在插件,网站本身只是一个骨架)。因此,我需要一种方法,当.DLL文件改为自动重新启动应用程序。

The problem is that when developing, these plugins will change fairly often (all the functionality is in the plugins, the website itself is just a skeleton). Thus, I need a way to automatically restart the application when the .DLL files change.

我该怎么办呢?

推荐答案

如果插件目录是您的Bin目录下,Web应用程序会自动重新启动时有什么变化。

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

这篇关于重新启动时,文件夹的内容更改ASP.NET应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆