I have a situation where I am running multiple instances of my WPF application. I want the instances to share the same user.config file. Currently, whichever instance writes to the user.config file last wins. I'd prefer for all the instances to watch the user.config file and reload the settings whenever another instance changes it. The user.config file is currently located here:
C:\Documents and Settings\username\Local Settings\Application Data\company name\ExeName.exe_StrongName_hash\1.0.0.0
For example, C:\Documents and Settings\usename\Local Settings\Application Data\Company\5kAdCon.exe_StrongName_gxh0g12uyafipnfrslaggvy4vvk01fko\1.0.0.0
Is there a way for me to get this full path (including the hash) so I can add a file watcher to the user.config file?
If so, I want to reload the settings when the file changes. Is it as easy as calling this method?
Properties.Settings.Default.Reload();