Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This is the intended behaviour of settings and config files. You will need to copy the config sections from your library projects into the main project. You will also need to add the corresponding section elements to the applicationSettings section group:</p> <pre><code>&lt;configSections&gt; &lt;sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"&gt; &lt;section name="SomeLibrary.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /&gt; &lt;section name="MainProject.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /&gt; &lt;/sectionGroup&gt; &lt;/configSections&gt; </code></pre> <p>then later in the main config:</p> <pre><code>&lt;applicationSettings&gt; &lt;SomeLibrary.Properties.Settings&gt; &lt;setting name="SomeSetting" serializeAs="String"&gt; &lt;value&gt;Whatever&lt;/value&gt; &lt;/setting&gt; &lt;/SomeLibrary.Properties.Settings&gt; &lt;MainProject.Properties.Settings&gt; &lt;setting name="MainSetting" serializeAs="String"&gt; &lt;value&gt;Yada yada&lt;/value&gt; &lt;/setting&gt; &lt;/MainProject.Properties.Settings&gt; &lt;/applicationSettings&gt; </code></pre> <p>In the above, the "SomeLibrary" settings type is declared in the main project and settings relating to the library are then set in the main config file alongside the settings for the main project.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload