Created
March 4, 2012 10:52
-
-
Save Thorium/1972380 to your computer and use it in GitHub Desktop.
Team Foundation Server: Check Out a file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//#r "Microsoft.TeamFoundation.Client" | |
//#r "Microsoft.TeamFoundation.VersionControl.Client" | |
//#r "Microsoft.TeamFoundation.VersionControl.Common" | |
open Microsoft.TeamFoundation.Client | |
open Microsoft.TeamFoundation.VersionControl.Client | |
let tfsCheckOut filename = | |
let workspaceInfo = Workstation.Current.GetLocalWorkspaceInfo filename | |
let workspace = RegisteredTfsConnections.GetProjectCollections().First() | |
|> TfsTeamProjectCollectionFactory.GetTeamProjectCollection | |
|> workspaceInfo.GetWorkspace | |
workspace.PendEdit filename |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment