Updating by using the Source Control Client
  1. Perform step1 through step 3 from subsection Setting up a Development Environment.

  2. Right-click your working project in Source Control Explorer and select Get Latest Version.

    All out-of-date files are copied in the local folder. For example, C:\Workspaces\Development

  3. In the Import Wizard, select the project file (smproj) to be imported.

  4. Select the database to be updated.

  5. Select Replace to avoid resolution conflicts.

  6. Click OK to complete the import.

You can also perform step 3 through step 6 by using a batch file with the following commands.

C:\Workspaces\Development >tf get
Import.exe  -c -m <databaseName> -s <hostName> C:\Workspaces\Development\Sample\Sample.smproj

Note: The above steps only imports the changed files while importing a .smproj file.