Life in my own company

Its all up to me.
posts - 137, comments - 166, trackbacks - 113

My Links

News



Twitter



Tag Cloud

Archives

Post Categories

Play

Work

Am I missing something (ApplicationSettings)?

I'm trying to use ApplicationSettings in the following scenario:

The settings are not all completely defined at design time (think plug-ins, but not completely that) and can be added by clients over time.

I can't find a way to make AppplicationSettings recognize new settings that weren't part of what it was compiled against.

I would have thought that this would be something pretty basic that they would add.

For example:

<TestAppSettings.TestSettings>
   
<setting name="DefaultSetting" serializeAs="String">
      <
value>Default Setting Value</value>
   </setting>
</TestAppSettings.TestSettings>

Then, after we ship, they need to add another setting:

 <TestAppSettings.TestSettings>
   
<setting name="DefaultSetting" serializeAs="String">
      <
value>Default Setting Value</value>
   </setting>
   <setting name="AnotherSetting" serializeAs="String">
      <
value>Another Setting Value</value>
   </setting>
</TestAppSettings.TestSettings>

I can't seem to get the code or the settings file to recognize AnotherSetting without modifying the wrapper class and adding AnotherSetting as a property.  When I iterate over the propertyvalues or the properties collection, the new setting doesn't show up, which I would have expected it to do.

Any ideas or suggestions?

Print | posted on Friday, January 05, 2007 6:06 PM | Filed Under [ Work ]

Feedback

No comments posted yet.

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 3 and 4 and type the answer here:

Powered by: