TFS: How can you Undo Checkout of Unmodified files in a batch file

前端 未结 10 1342
旧时难觅i
旧时难觅i 2020-12-04 04:37

We use a batch file to generate code, and it automatically checks out the generated files from Team Foundation Server (TFS) so that it can regenerate them. The majority of t

10条回答
  •  臣服心动
    2020-12-04 05:40

    Thank you @mike & @ray,

    I wish to make it easier.

    In VS, at Tools menu, click on "External Tools".

    External Tools

    Click Add.

    Enter title.

    Command: tfpt.exe

    Arguments: uu . /noget /recursive

    Initial Directory: [you can choose from the arrow button].

    Undo unchanged in solution

    Undo unchanged in project

    Two new command are added to Tools menu.

    Use them when needed.

    Enjoy,

    Ofir

提交回复
热议问题