如何保存到外部配置文件

时间:2012-09-15 03:45:09

标签: c# .net app-config

在ABC.exe.config(app.config)

<configuration>
    <appSettings file="MySettings.config">
        <add key="setting1" value="1" />
    </appSettings>
<configuration>

这里我使用“file”属性,而不是“configSource”,因为我想定义默认值。 如何保存到外部配置文件“MySettings.config”? 我必须保持“ABC.exe.config”不变,因为它会在程序升级时被覆盖,恕不另行通知。必须在“MySettings.config”

中保留所有全局设置

0 个答案:

没有答案
相关问题