我有一個exe文件,從本地app.config
文件中讀取一些值來更新值:在當地的app.config
TargetDate = ConfigurationManager.AppSettings.Get("ThresholdDate");
// and try to update with the current date
ConfigurationManager.AppSettings.Set("ThresholdDate", "2011-09-01");
我想它的工作一次,但我沒有看到app.config
以獲取更新所有現在。
這是有幫助:http://stackoverflow.com/questions/980440/update-app-config-system-net-setting-at-runtime – Baz1nga