How can the version of a Team Foundation Server be

2019-08-14 23:22发布

问题:

I'm working on a tool that works on both TFS2010 and TFS11. However, there are some features that are specific to TFS11, so I'd like to disable them when connecting to a server running TFS2010.

Is there any way to retrieve the version of the Team Foundation Server via the TFS API? I haven't found anything in the object model available on MSDN.

I found this blog post, which is interesting, but isn't a reasonable solution, since it requires using the TFS11 object model and it's entirely possible to connect to a TFS11 server using the TFS2010 object model.

回答1:

Check here, you should be good to go.