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
erwagaAsked:
Who is Participating?
 
clinton_cunninghamConnect With a Mentor Commented:
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
 
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
 
abhilekhaConnect With a Mentor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.