I have a class library project "A" with some web references that are added to its app.config
as following:
<?xml version="1.0" encoding="utf-8" ?><configuration><configSections><sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" ><section name="projA.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /></sectionGroup></configSections><applicationSettings><projA.Properties.Settings><setting name="projA_wsA_SrvA" serializeAs="String"><value>http://...</value></setting><setting name="projA_wsB_SrvB" serializeAs="String"> <value>http://...</value></setting></projA.Properties.Settings></applicationSettings></configuration>
Then I have a "B" project where I include "A" as a nuget package.
When adding, no <projA.Properties.Settings>
is included on "B" web.config.
If I manually add that section to the "B" project's web.config, the .dll takes the URL from the "B" project, which is is the desired behaviour (I just update the "B" web.config when deploying in prod environment).
The problem comes when I forgot adding settings on the "B" web.config. It takes "A" default setting and it fails in production environment.
Is it possible to automatically add the "A" settings when adding the nuget package on "B"?