Press CTRL+C or CMD+C to copy the selected text and close this dialog.
Tweet
3 people like it. Like the snippet!
Team Foundation Server (TFS): Check Out a file.
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12:
//#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