我在使用C#(尤其是硒)和Jenkins时遇到了一个具体问题。 我在Jenkins中有一个构建步骤:1)在我的项目中复制一个特定的web.config。 2)在我的项目中执行TestMethod(“ mstest / testcontainer:DLL / test:Mytest”) ...
提示:本站收集StackOverFlow近2千万问答,支持中英文搜索,鼠标放在语句上弹窗显示对应的参考中文或英文, 本站还提供 中文繁体 英文版本 中英对照 版本,有任何建议请联系yoyou2525@163.com。
我正在修改MyApp.vhost.exe,并且正如我在文本编辑器中看到的那样修改了App.vhost.exe,但是当我停止调试应用程序时,App.config值恢复为更改前的状态。 。 我做错了什么或我想念什么?
Configuration exeConfiguration = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
var section = exeConfiguration.GetSection(monitorSectionElementName);
if (section != null)
{
var monitorPathElements = (section as MonitorSection).MonitorPaths;
monitorPathElements[monitorPath].CheckSum = checkSum;
}
exeConfiguration.Save(ConfigurationSaveMode.Full, true);
ConfigurationManager.RefreshSection(monitorSectionElementName);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.