【发布时间】:2014-10-13 10:49:09
【问题描述】:
我有两个项目,一个基本上是 Windows 服务,第二个是我正在进行业务处理的类项目。我的 App.config 文件在 Windows 服务项目中,在我正在使用的 Class 项目中
ConfigurationManager.RefreshSection("appsettings");
string scheduledTime = ConfigurationManager.AppSettings["ScheduleTime"];
此设置在我的配置文件的 appsettings 部分中
我正在使用 RefreshSection 并且还在 Windows 服务项目中更新我的 app.config 值,但在我的类项目中运行时它没有得到更新。
这有什么问题?
【问题讨论】:
标签: c# windows-services app-config