HowardLee

I know you can get latest of directory using tf.exe get c:\project, but I want to get latest of only the files that are in a particular solution (i.e. myProject.sln) through the command line. I have searched, but could not find an answer.

Re: Team Foundation Server - General Get latest of files in a solution file through the command line

Richard Berg MSFT

Does it have to be entirely from the command line The best way to do this would be a Visual Studio macro. You could try to parse the sln/proj files yourself but that's going to be very error-prone.




Re: Team Foundation Server - General Get latest of files in a solution file through the command line

HowardLee

Yes, I would love to be able to do this through the command line so I can build a one click build from my desktop. I am trying not to use the VS at all. From all my searching on google, it just doesn't seem possible.



Re: Team Foundation Server - General Get latest of files in a solution file through the command line

Michal Malecki - MSFT

It is very hard to write this kind of tool, because you need to process sln, project and suo files. Suo files are binary and I don't know if their format is public. The reason you would need to play with them is because paths in the other files (sln/proj) are not always the correct after you do "Open from Source Control". Instead of changing them, Visual Studio adds translation table in suo and changes the paths on the fly. Your tool would need to do this if you want to handle all kinds of solutions/projects scenarios.




Re: Team Foundation Server - General Get latest of files in a solution file through the command line

HowardLee

Thanks for the reply guys. I guess I was just do it through the GUI for now.



Re: Team Foundation Server - General Get latest of files in a solution file through the command line

Richard Berg MSFT

If the idea is to automate builds, why not use Team Build