VB.Net Application Settings / ClickOnce

Posted by B Z on Stack Overflow See other posts from Stack Overflow or by B Z
Published on 2010-03-15T17:47:35Z Indexed on 2010/03/15 17:49 UTC
Read the original article Hit count: 366

Filed under:
|
|

VS 2008 / VB.Net / WinForms

I have an application setting (Settings.settings) for a project and I am using Click Once deployment.

I used the VS Editor to create the setting and I can see the setting in the app.config file

<applicationSettings>
  <MyApp.Win.My.MySettings>
   <setting name="MySetting" serializeAs="String">
    <value>False</value>
   </setting>
  </MyApp.ArtTracker.Win.My.MySettings>
 </applicationSettings>

I would like to update this setting after the application is compiled. The setting is for testing purposes only.

If I change the xxx.config.deploy and I reinstall the app with click once. The new setting value doesn't change (seems to be cached somewhere). Even if I change in my local pc the setting seems to be cached somewhere. If I go in VS it asks me to Re-Sync the settings. But I need to do this after the application is compiled.

Thanks for any help

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about clickonce