简体   繁体   中英

How do I create a workspace with local folder mappings in tfs using C#

I am trying to automate to get the latest code from TFS server to local path. The initial step for this is to create a workspace in TFS server if not exist already. How will i create the workspace with local folders mapping to the server folders.

Use the VersionControlServer.CreateWorkSpace method to create a workspace and set the working folders (use one of the overloads that accepts a WorkingFolder[] . Or update the workspace after initial creation. You can add addtional mappings and cloaks to the workspace at any point in time.

Getting to the VersionControlServer and connecting to TFS using the API is described in this post .

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM