How to resolve this?, are you missing assembly reference

纵饮孤独 提交于 2020-01-07 08:03:33

问题


The namespace client does not exist in Microsoft.teamfoundation are you missing assembly reference

I have added Nuget packages Microsoft.TeamFoundationServer.Client and Microsoft.TeamFoundationServer.ExtendedClient but I'm still facing this issue. I want to extract work item details from the TFS.


回答1:


Microsoft.TeamFoundationServer.Client provides access to version control, work item tracking, build, and more via public REST APIs.

Microsoft.TeamFoundationServer.ExtendedClient works with and manages version control, work items, and build, and other resources from your client application. This package does not support Net Standard Client OM. This package should only be used in instances where our REST APIs don't offer the functionality you need (i.e. creating workspaces in TFVC).

If you use a TFS version >= TFS 2015, you should try to use the REST API to extract work item details. Regarding REST API version, you can refer to the following link:

https://docs.microsoft.com/en-us/azure/devops/integrate/concepts/rest-api-versioning?view=azure-devops

Here is an existing sample code on the following link, you can refer to it:

https://github.com/microsoft/azure-devops-dotnet-samples/blob/master/ClientLibrary/Samples/WorkItemTracking/WorkItemsSample.cs



来源:https://stackoverflow.com/questions/59526807/how-to-resolve-this-are-you-missing-assembly-reference

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