title: Encrypt App.config file automatically during build process
body: <p>Currently, my application automatically encrypts its own App.config file the first time the application is launched.</p>
  
  <p>I'm using the <code>ConfigurationManager</code> class as demonstrated in this article:</p>
  
  <ul>
  <li><a href="http://weblogs.asp.net/jgalloway/archive/2008/04/13/encrypting-passwords-in-a-net-app-config-file.aspx" rel="noreferrer">Encrypting Passwords in a .NET app.config File</a></li>
  </ul>
  
  <p><strong>Now I want the App.config to already be encrypted before the application launches the first time.</strong></p>
  
  <p>Reason why is that I have added an installer to my solution and I don't want an installer that drops an un-encrypted App.config.  I want the process to be automated.</p>
  
  <p><em>(only thing I came up with so far is attaching an .exe to the Post-Build Event, but isn't there a more straight forward way?)</em></p>