You can split your configuration into several different files, as Neil said.
You will have the main web.config file in which you will reference the auxiliary configuration files by adding the configSource attribute to the sections that you would like to split into other files.
For example, if you want to separate the "appsettings" section in another file, you change the appSettings section in the web.config file to:
<appSettings configSource="appsettings.config" />
and in the appsettings.config file you add all your appsettings entries, for example, to the source web.config file;
<appSettings> <add key="aspnet:RestrictXmlControls" value="true" /> <add key="FeedCacheTime" value="300" /> <add key="FeedPageUrl" value="/_layouts/15/feed.aspx?" /> <add key="FeedXsl1" value="/Style Library/Xsl Style Sheets/Rss.xsl" /> <add key="aspnet:AllowAnonymousImpersonation" value="true" /> </appSettings>
Obviously, cards are being overwritten instead.
Harry torry
source share