I'm writing a customized activity for TFS build process workflow, eg 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 the VersionControlServer.TryGetWorkspace
and which returns a Workspace object. Use Workspace.GetLocalItemForServerItem
or the reverse Workspace.GetServerItemForLocalItem
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.