title: Creating msbuild script to build, publish with specified app.config, and update from different locations
body: <p>I have googled everywhere for this solution and cannot find anything!</p>
  
  <p>I want to have a msbuild script to do the following:</p>
  
  <ol>
  <li>Build the project solution</li>
  <li>Publish the built solution with the specified app.config (app.config.debug or app.config.release) to a specified folder (Development or Production)</li>
  <li>With the specified configuration, know where to check for updates. <br>
      -if deployment -> check in the sample production folder <br>
      -if development -> check in the sample development folder</li>
  </ol>
  
  <p>The script currently works but there are two problems...</p>
  
  <ul>
  <li>I cannot figure out how to have two different installations that check two different places to check for updates. <br></li>
  <li>I cannot auto increment the revision build. It currently stays at the same build number everytime i use the script.</li>
  </ul>
  
  <p><b>My Current script:</b></p>
  
  <pre><code>msbuild "C:\sample\sample.csproj"
  /t:clean
  /t:build
  /t:publish
  /p:Configuration=release
  /property:PublishDir="C:\Samplelocation/"
  /property:UpdatedEnabled=true
  /property:UpdateRequired=true
  /property:UpdateUrl="C:\Samplelocation/"
  /property:GenerateManifests=true
  /property:PublishWizardCompleted=true
  </code></pre>
  
  <p>Any help would be greatly appreciated. Thanks ahead of time!</p>