Click here to Skip to main content
15,885,908 members
Articles / Programming Languages / C#

.NET settings files in class library projects

Rate me:
Please Sign up or sign in to vote.
5.00/5 (7 votes)
26 Aug 2011CPOL2 min read 89.3K   2.4K   28  
How to use .NET settings files in class library projects.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <configSections>
        <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
            <section name="DemoLib.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
        </sectionGroup>
    </configSections>
    <applicationSettings>
        <DemoLib.Properties.Settings>
            <setting name="MySetting" serializeAs="String">
                <value>Assembly configuration settings - MODIFIED value.</value>
            </setting>
        </DemoLib.Properties.Settings>
    </applicationSettings>
</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Bulgaria Bulgaria
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions