Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS get latest version with new files

I'm having problems with TFS when adding new files or folders to my solution.

When any other people in the team try to "get latest" it updates every changed file but it doesn't download the new added files!!

If we go to the Source Control explorer, the new files appear as "not downloaded"... and if we force it to download, then we have to include the file in the project in his machine too.

I can't believe this is the normal behavior for TFS (I think this is basic) so I assume we are doing something wrong... Any idea of what's happening??

Thanks in advance ;-)

like image 372
zapico Avatar asked Aug 26 '11 10:08

zapico


People also ask

What is get latest version recursive?

The Get Latest Version (Recursive) will get all files in the branch. To get files in a specific project, you could create a new Workspace in Source Control Explorer pointing to a separate folder, then switchover to this new workspace and do Get Specific Version here.

How do I get the latest source code in Visual Studio?

Ribbon Select Source Control > Get Latest Version (for selected files) or Source Control > Get Latest Version All (for all files in the project). Right-Click In the File List, right-click the file you want to get and select Source Control > Get Latest Version.


1 Answers

Have you also checked in the project file to which the added files are related? In Solution Explorer these files will only be available if they are also in the local project file. Also check if the user attempting to download has the project file checked out already.

Update: From within Solution Explorer you'll only get what's required for the referenced files in the .proj file. For Source Control Explorer yes it should get those files if you've never downloaded them before. Best way to be sure is rather than just do Get Latest (which tries to sync what it understands server side about your local workspace with the server) do a Get Specific Version -> Latest Version. This way you can "force" download of all project files irrespective of existing workspace status.

like image 190
Darren Lewis Avatar answered Oct 20 '22 02:10

Darren Lewis