title: How do I get build details in a custom workflow activity?
body: <p>I need to add a custom activity to the default workflow template to increase assembly versions at the earliest point possible in the build process.</p>
  
  <p>What I would like to achieve is to create and map the exact same workspace (that is be created further down in the workflow) inside my custom activity so that I can check out an xml file, increase the version number held within, write it back to the xml file and check the xml file back in.</p>
  
  <p>I'm aware that this workspace will be created later on in the workflow but that will be too late in the build process for what I'm trying to achieve, so instead of moving any of the activities or duplicating them in a position above my custom activity (this should be ok as this workspace will be deleted and recreated again later)</p>
  
  <p>I think the details I need are the BuildDirectory, WorkspaceName and SourcesDirectory. Can anyone tell me how to achieve the creation of the workspace or how obtain this data in code? </p>
  
  <p>the build will be carried out on a build server, and I am using TFS 2010 and c#.</p>
  
  <p>Thanks in advance</p>