We all know that modifying a .NET web application’s web.config file restarts the app and makes it read the updated configuration. How do you do that with a console or WinForms app? Thanks 🙂
We all know that modifying a .NET web application’s web.config file restarts the app
Share
Probably need a FileSystemWatcher to monitor the file, and handle the relevant event. The System.Configuration.ConfigManager class might have the relevant methods to reload (method call or some such). I don’t have VS in front of me, but I’d say there’s definately some hooks there for sure.