IIS restart in file changed

AFAIK IIS restarts when any of the web.config files changes.
I created my own configuration files (my.config, with a slightly different hierarchy). Is it possible to restart IIS automatically (automatically) reboots when any of them also change?

EDIT: I looked at file system watchers, but I'm not sure where to put them.

+3
source share
3 answers

You want to say that whenever you change my.config, iis should be rebooted automatically.

, iisreset , , IIS. , .

0

bin.

. , ;)

-:

* web.config
* machine.config
* global.asax
* Anything in the bin directory or it sub-directories

/ ,

0

SomeAssemly.dll.config, ~/Bin, app (re) .

Please note that App.configin the project it becomes $(OutputAssembly).configduring construction

0
source

Source: https://habr.com/ru/post/1762810/


All Articles