I'm writing a customized activity for TFS build process workflow, e.g. guideline here.
In my C# CodeActivity .Execute() method, I want to get path to file and/or folder in a Workspace
I tried google and found ConvertWorkspaceItem
here but I don't know how to run it and discussed here.
If you know how to, please share.
The ConvertWorkspaceItem is an activity. In your custom code activity, you can either create an instance of this activity, set the required parameters and call the
Execute()
method. Or you can use theVersionControlServer.TryGetWorkspace
and which returns a Workspace object. UseWorkspace.GetLocalItemForServerItem
or the reverseWorkspace.GetServerItemForLocalItem
.