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.Win.My.MySettings>
</applicationSettings>
I would like to update this setting after the application is packaged in click once. 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 packaged in click once.
Update
I am able to change other settings for example the connection string and it is reflected after an application is installed. I only have issues with the "MySettings" settings.
Clarifying steps:
- Create click once deployment
- Copy to customers' deployment server (IIS)
- Edit the xxx.config.deploy file on the server
- Install on a client PC (By installing from deployment server on step 2)
- The client PC doesn't have the updated setting
Thanks for any help