Setting up source control on your computer

To take advantage of the benefits of Team Foundation source control, you must first configure Microsoft Expression Web to use it.

Prerequisites

You must have Microsoft Visual Studio Ee371249.xtlink_newWindow(en-us,Expression.40).png installed before you can use Team Foundation source control.

To create a Team Foundation workspace

You must create a Team Foundation workspace before you can use Team Foundation source control in Expression Web.

To connect to an instance of Team Foundation Server for the first time

  1. In Visual Studio, on the Tools menu, click Connect to Team Foundation Server.

    Note

    If you do not see this option, you have not installed Team Explorer. You must install Team Explorer before you will have the option to connect to Team Foundation Server.

  2. In the Connect to Team Project dialog box, click Servers.

  3. In the Add/Remove Team Foundation Server dialog box, click Add.

  4. In the Add Team Foundation Server dialog box, type the name or URL for the server.

  5. When you type a server name, the Preview field automatically displays the URL format, for example:

    http://ServerName:Port/tfs

    • ServerName   is the name of the server that hosts Team Foundation Server.

    • Port   is the port that Team Foundation Server uses; the default value is 8080. If your server uses a different port number, you must specify that port number in the URL.

    • tfs   is the default path to the project collections that are stored on the server. If your team uses a different path, type it in the Path box.

  6. Verify that the URL is correct, click OK two times, and then click Close.

  7. In the Connect to Team Project dialog box, under Team Project, click the check box for each team project that you want to access, and then click Connect.

To connect and add team projects to Team Explorer

  1. In Visual Studio, on the Tools menu, click Connect to Team Foundation Server.

    Note

    If you do not see this option, you have not installed Team Explorer. You must install Team Explorer before you will have the option to connect to Team Foundation Server.

  2. In the Connect to Team Project dialog box, select from the Team Foundation Server list a server that is running Team Foundation Server.

    Note

    If the drop-down list is empty, click the Servers button to enter the server connection settings manually. Contact your Team Foundation administrator or team project administrator to obtain the connection settings.

  3. Click the name of the project collection that contains the team project from the Directory list.

  4. Select one or more team projects from the Team Projects list.

    Team projects with a check mark next to them are added to Team Explorer.

  5. Click Connect.

To create a new site in Team Foundation source control

  1. In Expression Web, click Site, and then click New Site.

  2. Browse to a location that is in the project workspace and create the new site there.

  3. In the Folder List panel, right-click the root folder of your site and click Add to Source Control.

See also

Tasks

Checking files in and out

Concepts

Using source control
Source control best practices

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.