On occasion, I have wanted to grab a specific non-latest version of a file from TFVC and fiddle around in it in a local workspace to test a theory. There are lots of ways to get a specific version of a file, folder, or entire branch in Visual Studio. However, whenever you start to edit a previous version of a file, Visual Studio automatically checks out the latest version of the file.
The fix (read workaround) is to check out the file manually before getting a previous version of it rather than relying on the
Check out automatically options.
It seems like it would be simple to have an option to toggle whether
Check out automatically gets the latest version of the file or keeps the current version. Maybe that is an option, but I have not been able to find it.
There is the option below at
Source Control ->
Visual Studio Team Foundation Server, but it does not seem to have any effect on a local workspace.
Get latest version of item on check-out in a server workspace
My team is using Visual Studio Enterprise 2017 and Team Foundation Server 2015.
Leave a Reply