locked
tf add is failing to recurse RRS feed

  • Question

  • Using tf.exe from the command I want to add files and folders (recursive) to a project. 

    I add a folder with subdirectores and files to an already mapped location in the VS project. Then from command prompt cd into this new folder and: tf add * -r /noignore & tf checkin * -r /noprompt

    What is happening is just the folders get added, none of the source code in the sub directories.

    Any ideas how to fix this?




    Thursday, April 14, 2016 4:54 PM

All replies

  • Visual Studio 2015 Enterprise Update 1 using Microsoft hosted Visual Studio Team Services @ [me].visualstudio.com

    This problem I'm posting about is new, a regression.

    Thursday, April 14, 2016 5:21 PM
  • Completed upgrade to Visual Studio 2015 Update 2. The regression remains.
    Thursday, April 14, 2016 5:55 PM
  • anyone?

    Here is an example, maybe I'm doing this wrong. The expectation would have been for the entire directory tree to be added. It was not, as evidence changing directory into Begin\Simple should not have added anything because the first command should have picked up those files:

    c:\Development\Main\Samples\VistaSDK>tf add * -r /noignore
    Begin
    Com
    CrossTechnologySamples
    dataaccess
    FrameworkSamples
    Misc
    Multimedia
    NetDs
    Security
    SysMgmt
    TabletPC
    WCFSamples
    Web
    WFSamples
    WinBase
    winui
    X509 Certificate Enrollment

    c:\Development\Main\Samples\VistaSDK>cd begin\Simple

    c:\Development\Main\Samples\VistaSDK\Begin\Simple>tf add * /noignore
    Makefile
    ReadMe.Txt
    Simple.c

    c:\Development\Main\Samples\VistaSDK\Begin\Simple>

    Thursday, April 14, 2016 9:20 PM
  • Hi Joel_Z,

    According to your description, you are using Visual Studio Team Services, the Visual Studio Team Services forum is the better place for the issue related to it and I will move it there for you.

    On the other hand, there is /recursive parameter to add items in specified directory and any subdirectories, so please add this parameter and try again.

    # Add command

    https://msdn.microsoft.com/en-us/library/f9yw4ea0.aspx

    Regards

    Starain


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, April 15, 2016 8:55 AM
  • -r or /recursive are the same.

    c:\Development\Main\Samples\VistaSDK>tf add * /recursive /noignore
    Begin
    Com
    CrossTechnologySamples
    dataaccess
    FrameworkSamples
    Misc
    Multimedia
    NetDs
    Security
    SysMgmt
    TabletPC
    WCFSamples
    Web
    WFSamples
    WinBase
    winui
    X509 Certificate Enrollment

    c:\Development\Main\Samples\VistaSDK>tf add * -r /noignore
    Begin
    Com
    CrossTechnologySamples
    dataaccess
    FrameworkSamples
    Misc
    Multimedia
    NetDs
    Security
    SysMgmt
    TabletPC
    WCFSamples
    Web
    WFSamples
    WinBase
    winui
    X509 Certificate Enrollment

    c:\Development\Main\Samples\VistaSDK>

    Friday, April 15, 2016 10:10 PM
  • ttt.
    Saturday, April 16, 2016 4:03 PM