Russ Suter

I have a solution that has been added to source control and I have disabled multiple checkout for this project. The problem is that if one team member changes the project it is not automatically updated for the rest of the team. I have to right click on the solution and choose "Get Latest Version (Recursive)" from the menu. Is there a way to automatically update all workspaces when a file is checked in Alternatively, is there a way to ensure that the latest version of a file is being checked out Manually refreshing the project every time I want to make a change will be tiresome and prone to someone forgetting.

Thanks,

russ...



Re: Team Foundation Server - Version Control How to always get the latest version

TF14129 - MSFT

As far as I know, 'always get the latest' does not come out-of-box with TFS. However, I can be very wrong about this Smile On the other hand, if what I said happens to be true, then you might consider the following possibilities...

A quick hacky solution would be to run a "tf get /r" in your workspace every 5 minutes (with a timer or a batch file with sleep command) -- a pull model.

Another less hacky solution would be to subscribe to the CheckInEvent on TFS and then let clients kick off a get latest accordingly -- a push model.

Hopefully someone who is more familiar with TFS will give us a better idea.






Re: Team Foundation Server - Version Control How to always get the latest version

Mario Rodriguez- MSFT

Hi:

The feature you are describing is "Get latest on Checkout" and that feature is now part of the Orcas release.

Now another part of your question was the need to have always the latest on your workspace regardless of check in out the file or not. We at Microsoft strongly discourage that kind of process because is very likely you will get into situations where unstable code will make it to your machine.

Your workspace is supposed to be your sandbox and hence we decided to let the update of the workspace to be a user action instead of an automatic configuration. This is also one of the reasons why we currently do not support sharing and pinning.

thanks, mario






Re: Team Foundation Server - Version Control How to always get the latest version

Russ Suter

I understand the reasoning behind not doing an automatic update when someone checks in. Thanks for the clarification. It's also good to see that the "Get latest on Checkout" is a standard feature in the next release. Is there a way to incorporate that feature in the current release through some kind of workaround

thanks,

russ...





Re: Team Foundation Server - Version Control How to always get the latest version

Craig Harry MSFT

There is no way to incoporate it into the current version of Visual Studio, short of you writing a plugin that implements the command.






Re: Team Foundation Server - Version Control How to always get the latest version

Eugene Zakhareyev

You may want to check the Get Latest on Check Out add-in (see here).

Hope that helps,

Eugene