In einer asp.net web.config DateiappSettings Dateiattribut Äquivalent für application
<appSettings file="local.appSettings.config">
<add key="foo" value="bar" />
</appSettings>
tun können, und es wird für alle Überschreibungen auf die foo/bar Einstellung in local.appSettings.config aussehen.
Gibt es ein Äquivalent für applicationSettings? So etwas wie dieses
<applicationSettings file="local.applicationSettings.config">
<FooBar.My.MySettings>
<setting name="foo" serializeAs="String">
<value>bar</value>
</setting>
</FooBar.My.MySettings>
</applicationSettings>
oder sogar einen anderen Ansatz einen anderen Satz von application zur Erhaltung, zum Beispiel einen Satz für die lokale Entwicklung und eine Reihe für die Produktion
configSource scheint jedoch keine optionale Datei zu sein. Wenn die Datei nicht gefunden werden kann, wird eine Ausnahme ausgelöst. Gibt es eine Möglichkeit, es optional zu machen? –