I'm working on a Visual Studio 2010 add-in, and I'm trying to figure out how to determine the currently connected TFS server. I'm guessing I need to use DTE, but I'm having a brain cramp figuring out where to get the info.
相关问题
- Visual Studio 2010 randomly says the command line
- (ASP.NET) Project file must include 'WindowsBa
- Getting error: File extension specified '.webt
- Partial Form Class C# - Only display code view for
- Using TFS command line tf.exe how can I copy a rep
相关文章
- How to show location of errors, references to memb
- Log4Net Multiple Projects
- Compiling error in C++ project with C and C++ code
- How to use Mercurial from Visual Studio 2010?
- VSIX: execute code on VS startup
- Is it possible to do a “destroy history” in TFS?
- Copy different file to output directory for releas
- How do we alias a Sql Server instance name used in
I suggest you check out the
Microsoft.TeamFoundation.VersionControl.Client.Workstation.GetLocalWorkspaceInfo
method, in result you have an object and accessServerUri property
See this documentation on MSDN for more details.
Robaticus originally edited the question with the solution. Converted it to a Community Wiki answer:
Actually, I may have found the answer, which I culled from a couple places.