我正在创建一个 API,用于从 TFS 获取有关工作项的信息,例如标题、迭代信息等.我在一个项目中安装了 NuGet 包 Microsoft.TeamFoundationServer.ExtendedClient for .NET Framework,我能够做到这一点.
I am working on creating an API that fetches information about work items like Title, Iteration information etc from TFS. I installed the NuGet package Microsoft.TeamFoundationServer.ExtendedClient for .NET Framework in a project and I was able to do this.
但是,我想使用 .NET Core 项目.当我继续在我的 .NET Core 项目中安装它时,它在 Dependencies 中显示一个黄色三角形作为警告,我无法使用命名空间 Microsoft.TeamFoundationServer.WorkItemTracking.Client.
But, I would like to use a .NET Core project. When I went ahead and installed this in my .NET Core project, it shows up a yellow triangle in Dependencies as warning and I am not able to use the namespace Microsoft.TeamFoundationServer.WorkItemTracking.Client.
我想知道微软是否发布了这个包的 .NET Core 替代品.或者,是否有任何解决方法可以实现我想要做的事情?
I want to know if Microsoft released a .NET Core replacement for this package. Or, is there any workaround to achieve what I am trying to do?
PS - 我试过这样做,mitchdenny/vsts-libraries-from-dotnet-core/,但这似乎也不起作用.最坏的情况是,我现在可以继续使用 .NET Framework 项目,但我想首先寻找替代方案.
P.S - I tried doing this, mitchdenny/vsts-libraries-from-dotnet-core/, but that didn't seem to work either. Worst case scenario, I could go ahead using a .NET Framework project for now, but I wanted to look for alternatives first.
推荐答案一个简单的好方法是使用 TFS 提供的 API.要使用工作项,请转至 docs.microsoft/en-us/rest/api/vsts/wit/work%20items
A good way to do this easily is to use the API offered by TFS. To work with work items go to docs.microsoft/en-us/rest/api/vsts/wit/work%20items
更多推荐
适用于 Microsoft.TeamFoundationServer.ExtendedClient 的 .NET Core NuGet 包
发布评论