简体   繁体   English

如何以编程方式(使用C#)更新VSTS文件

[英]How to update VSTS Files programatically (using c#)

I have Visual Studio Team Server and I want to edit some files programmatically, Is it possible using c#? 我有Visual Studio Team Server,我想以编程方式编辑一些文件,是否可以使用c#?

See image below for the folders and files that i want to get and update. 请参阅下面的图像,获取我想要获取和更新的文件夹和文件。 在此处输入图片说明

You can achieve that through TFS API by using C#. 您可以使用C#通过TFS API来实现。

  1. Create workspace 创建工作区
  2. Map files 地图文件
  3. Get latest files 获取最新文件
  4. Modify files 修改档案
  5. Check in changes 签入更改

For sample code, you can refer to this article. 对于示例代码,你可以参考这个文章。

On the other hand, you could achieve that through Rest API. 另一方面,您可以通过Rest API来实现。 Check this thread. 检查线程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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