How can the version of a Team Foundation Server be determined programmatically?

你。 提交于 2019-12-24 09:48:55

问题


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.



来源:https://stackoverflow.com/questions/10234253/how-can-the-version-of-a-team-foundation-server-be-determined-programmatically

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!