Copying files from local folder to TFS using C# code RRS feed

  • Question

  • I am building an app, which should have a functionality to copy files from a local folder and save it in TFS on a button click. I did lot of googling to get a solution for this purpose , I couldn't find an apt one. So, my question is,  is it possible to add new files to TFS programatically using C#?. If yes, then is there any restriction on the file types we can add to TFS?. if we can add new files from a local folder to TFS programmatically, can someone please provide me a reference code for the same?. Thanks in advance
    • Edited by ShruthiBG Tuesday, June 26, 2018 6:58 AM
    • Moved by CoolDadTx Tuesday, June 26, 2018 2:13 PM Not a C# question
    Tuesday, June 26, 2018 6:38 AM

All replies

  • Hi ShruthiBG,

    This forum discusses and asks questions about the based C# programming language, since your issue, which need to use TFS API to acheive, and it is more related to TFS, I would suggest that you could post your issue on stackoverflow with tag TFS for suitable support.


    Thanks for your understanding

    Best regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, June 26, 2018 7:36 AM