title: Commit file back to repository from build server in Visual Studio Team Services
body: <p>I'm currently setting up continuous integration using TFS/Visual Studio Team Services (was VS Online), and I'm using the <a href="https://msdn.microsoft.com/en-us/library/vs/alm/build/feature-overview" rel="nofollow noreferrer">Team Foundation Build 2015</a> tasks. So not the XAML builds.</p>
  
  <p>I'm using it to build a Xamarin Android project, but that's pretty irreverent I guess, </p>
  
  <p>The process should be like this:</p>
  
  <ul>
  <li>After a check-in:</li>
  <li>TFS should download the sources</li>
  <li>TFS should increment the version number within AndroidManifest.xml
  
  <ul>
  <li>I've managed to do this by making a PowerShell script for this.</li>
  </ul></li>
  <li>After the AndroidManifest.xml file is modified, it should be committed back into the TFS repository</li>
  </ul>
  
  <p>Then the rest, build deploy into hockeyapp etc</p>
  
  <p>The first steps are all configured, but I'm struggling with the commit part. How do I get TFS to commit the file? I don't really see any task suitable for it. I've tried using the <a href="https://msdn.microsoft.com/library/vs/alm/build/steps/utility/copy-and-publish-build-artifacts" rel="nofollow noreferrer">Copy and Publish Build Artifacts Utility</a> - But that did not seem to work, and I'm not even sure if that's the right utility</p>
  
  <p>I'm using the default hosted build agent btw. Any help would be appreciated </p>