I am creating a custom activity for my build in TFS 2010, and I need to pass the activity the source control folder for the current build definition.
I need this as it is defined on the Workspace screen in the build definition screen, such as a string like “$/Project/Folder”.
I can’t find the appropriate property to pass as an argument to my activity. I’ve found BuildDetail.TeamProject just returned “Project”, but haven’t had much success with anything else.
Any help appreciated.
You can create a property like
In the overriden execute method you can access the workspace like
To use the Workspace type you need an using to
For detailed information look at Ewald Hofmans blog