title: How do I change the value of a Settings.settings value
body: <p>I have a simple console application which runs daily (called by windows task scheduler) and depends on a value that is incremented each time the application runs.  In order to persist this value I chose to use the Settings.Settings file.</p>
  
  <p>So I have an integer value called RunNumber with Scope User which is incremented each time the application finishes running:</p>
  
  <pre><code>Properties.Settings.Default.RunNumber++;
  Properties.Settings.Default.Save();
  </code></pre>
  
  <p>Part of the reason I chose this is that the value is also placed into the app.config file:</p>
  
  <pre><code>&lt;setting name="RunNumber" serializeAs="String"&gt;
      &lt;value&gt;0&lt;/value&gt;
  &lt;/setting&gt;
  </code></pre>
  
  <p>Which means that should the RunNumber have to be incremented unexpectedly it can just be changed in the app.config:</p>
  
  <pre><code>&lt;setting name="RunNumber" serializeAs="String"&gt;
      &lt;value&gt;10&lt;/value&gt;
  &lt;/setting&gt;
  </code></pre>
  
  <p>My expectation being that the next time my application goes to read the value of RunNumber it would take the value set in the app.config (in this case 10).  This does not happen and instead the next time the application is run it will use the value it last modified in this case the run number would be 1 instead of the 10 I would expect.</p>
  
  <p>My application accesses the value of RunNumber like this:</p>
  
  <pre><code>Properties.Settings.Default.RunNumber
  </code></pre>
  
  <p>How can I change the value of the RunNumber without having to modify the application?  The idea being if it needs to be changed to a value unexpectedly I could just modify the value in the app.config instead of having to change some code and re-deploy the application.  </p>