• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 930
  • Last Modified:

TFS command line - get latest version

Hi,

I want to get latest of a project (Project1) to my work space (workspace1) using TFS command line. The command should download all items for the project.

Thanks in Advance
0
erwaga
Asked:
erwaga
  • 2
2 Solutions
 
clinton_cunninghamCommented:
tf get Project1 /recursive /noprompt

ref:
http://msdn.microsoft.com/en-us/library/fx7sdeyf%28VS.80%29.aspx
0
 
erwagaAuthor Commented:
I tried what you said, but got this error;

unable to determine the workspace
0
 
abhilekhaCommented:
create a bat file and copy the this content and run it
@echo off
"C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe"

/property:SolutionRoot="D:\YourProject\xyz";
/property:SourceControlMainDirectory="$\MyProj";
/property:WorkSpaceName="YourWorkSpace";
/property:WorkingDirectory="D:\YourProject"

@echo "completed"

Pause
0
 
clinton_cunninghamCommented:
make sure your workspace name is Project1,
it's quite possible it's something else. Go into the TFS source Control Explorer and look at the name of the "Workspace:" item on the top bar. Use this instead of Project1.

If you only want to get latest for a specific project, create a new workspace with that particular project listed under it. Then use that new workspace name in the command line.
0

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now