【发布时间】:2011-11-08 14:37:27
【问题描述】:
我有一个 exe,它从其本地 app.config 文件中读取一些值:
TargetDate = ConfigurationManager.AppSettings.Get("ThresholdDate");
// and try to update with the current date
ConfigurationManager.AppSettings.Set("ThresholdDate", "2011-09-01");
我认为它曾经工作过,但现在根本没有看到 app.config 得到更新。
【问题讨论】:
标签: c# app-config