Cannot seem to use TFS API, how to correctly import items from the SDK?

 ̄綄美尐妖づ 提交于 2019-12-12 19:56:50

问题


I am trying to write some simple code to connect to a TfsTeamProjectCollection, however, I continue to get the message :

"type or namespace name 'WorkItemStore'/'WorkItemCollection'/'TfsTeamProjectCollection'/'Project' could not be found."

I have tried to find the TFS SDK, and how to install it, but I can't seem to figure this out - I seem to be blind as this is definitely well documented somewhere. I believe I need to install some of these items, and then add them as references to my project? Could this be correct ? Which of these items do I need ?

Thanks very much, apologies for the silly question - I have recently given up coffee!


回答1:


Try referencing the Microsoft.TeamFoundation.Client.dll

It is installed with Team Explorer.



来源:https://stackoverflow.com/questions/12835228/cannot-seem-to-use-tfs-api-how-to-correctly-import-items-from-the-sdk

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