Not that it has ever had high traffic as far as I know :) Here's a little sample C# using TFS2010 client API.
private string _collectionUri; private TfsTeamProjectCollection GetCollection() { if (Uri.IsWellFormedUriString(_collectionUri, UriKind.Absolute)) { return TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri(_collectionUri)); } return TfsTeamProjectCollectionFactory.GetTeamProjectCollection(GetCurrentDirectoryMappedCollectionUri()); } private Uri GetCurrentDirectoryMappedCollectionUri() { WorkspaceInfo localWorkspaceInfo = Workstation.Current.GetLocalWorkspaceInfo(Environment.CurrentDirectory); return localWorkspaceInfo.ServerUri; } //http://msdn.microsoft.com/en-us/library/microsoft.teamfoundation.versioncontrol.client.versioncontrolserver(v=VS.100).aspx private VersionControlServer GetVersionControlServer() { return GetCollection().GetService<VersionControlServer>(); } //http://msdn.microsoft.com/en-us/library/microsoft.teamfoundation.workitemtracking.client.workitemstore(v=VS.100).aspx private WorkItemStore GetWorkItemStore() { return GetCollection().GetService<WorkItemStore>(); } The assembly references you need are: Microsoft.TeamFoundation.Client.dll Microsoft.TeamFoundation.Common.dll Microsoft.TeamFoundation.VersionControl.Client.dll Microsoft.TeamFoundation.VersionControl.Common.dll Microsoft.TeamFoundation.WorkItemTracking.Client.dll You should be able to find them in <VS 2010 Installation Folder>\Common7\IDE\ReferenceAssemblies\v2.0 VS 2010 Installation Folder is typically C:\Program Files\Microsoft Visual Studio 10.0 From: oztfs-boun...@oztfs.com [mailto:oztfs-boun...@oztfs.com] On Behalf Of Daniel Brown Sent: Sunday, 18 September 2011 8:39 AM To: 'ozTFS' Subject: RE: Looking for C sharp code examples for TFS 2010. Im still here, it has been a little quiet as of late. From: oztfs-boun...@oztfs.com [mailto:oztfs-boun...@oztfs.com] On Behalf Of Macdiarmid, James D. Sent: Sunday, 18 September 2011 12:46 AM To: oztfs@oztfs.com Subject: Looking for C sharp code examples for TFS 2010. Hi everyone, I've been subscribed to this list for a while and haven't seen any traffic. Does anyone still use this mailing list? Thanks, Jim ************** IMPORTANT MESSAGE ***************************** This e-mail message is intended only for the addressee(s) and contains information which may be confidential. If you are not the intended recipient please advise the sender by return email, do not use or disclose the contents, and delete the message and any attachments from your system. Unless specifically indicated, this email does not constitute formal advice or commitment by the sender or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its subsidiaries. We can be contacted through our web site: commbank.com.au. If you no longer wish to receive commercial electronic messages from us, please reply to this e-mail by typing Unsubscribe in the subject line. **************************************************************
_______________________________________________ oztfs mailing list oztfs@oztfs.com http://prdlxvm0001.codify.net/mailman/listinfo/oztfs