我有一个Windows应用程序,它通过ClickOnce进行部署。我的app.config中的appsettings有几个设置。一些设置是部署特定的,比如文件下载的web服务器源等。这将随着部署地区的不同而变化。一些设置项是应用程序特定的,在部署过程中不会改变。
<appSettings >
<add key="key1" value="Value111 changable with region" />
<add key="Key2" value="Value222 changable with region" />
<add key="key3" value="Value333 NOT changable with region" />
<add key="Key4" value="Value444 NOT changable with region" />
</appSettings >
现在我需要将我的appsettings拆分为两个app.config文件。 我想将key1和key2放在不同的配置文件中。我该怎么做呢?