Share via


How to: Run Team Foundation Server SDK Samples

Use the following procedure to prepare your environment for the Team Foundation Server SDK samples. Visual Studio must connect to a Team Foundation server before the methods and classes of the Team Foundation Server SDK will work on that computer.

To Run the Samples

  1. Install Team Foundation Server.

    If you install a non-Team Foundation version of Visual Studio, you can build samples, but they will not work on that computer.

  2. In Visual Studio, connect to a Team Foundation server.

    1. On the Tools menu, click Connect toTeam Foundation Server.

    2. In the drop-down box, select the name of the Team Foundation server that you want to use, and go to step 3.

    3. If the Team Foundation server that you want to use does not appear in the list, click the Servers button.

    4. Click the Add button, and type the name of the Team Foundation server that you want to use.

    5. Click OK.

    6. Click Close.

  3. Under Team projects, select the team projects that you want to include.

  4. Click OK to close the Connect to Team Foundation Server dialog box.

  5. Load the Team Foundation Server SDK sample, build it, and then run it.

See Also

Other Resources

Team Foundation Server SDK