简体   繁体   English

便携式Roslyn Analyzer C#vS2015 Team Foundation Server Nuget软件包支持

[英]Portable Roslyn Analyser C# vS2015 Team Foundation Server Nuget Package support

I'm trying to write a basic diagnostic analyser with code fix (involving calls to TFS, work item create and update) 我正在尝试编写具有代码修复功能的基本诊断分析器(涉及对TFS的调用,工作项的创建和更新)

Target framework is .Net framework 4.5, ASP.Net Core 1.0, Windows 8, Windows Phone Silver light 8. 目标框架是.Net框架4.5,ASP.Net Core 1.0,Windows 8,Windows Phone Silver light 8。

When I try to add a Microsoft.TeamFoundationServer.ExtendedClient, I receive the following error 当我尝试添加Microsoft.TeamFoundationServer.ExtendedClient时,出现以下错误

Install-Package : Microsoft.TeamFoundationServer.ExtendedClient 14.95.3 is not compatible with .NETPortable,Version=v4.5,Profile=Profile78. 安装软件包:Microsoft.TeamFoundationServer.ExtendedClient 14.95.3与.NETPortable,Version = v4.5,Profile = Profile78不兼容。 At line:1 char:1 + Install-Package Microsoft.TeamFoundationServer.ExtendedClient + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand 在第1行:char:1 + Install-Package Microsoft.TeamFoundationServer.ExtendedClient + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + CategoryInfo:未指定:(:) [Install-Package],异常+ FullyQualifiedErrorId:NuGetCmdletUnhandledException,NuGet。 PackageManagement.PowerShellCmdlets.InstallPackageCommand

I also tried Microsoft.TeamFoundationServer.Client and get the same error. 我也尝试了Microsoft.TeamFoundationServer.Client并得到了同样的错误。

Any help to overcome this issue would be appreciated. 克服此问题的任何帮助将不胜感激。

I also tried to change the target framework of the analyser project to NetStandard 1.5 by doing the below 1) Uninstall all nuget packages 2) Change target framework 3) Install package NETStandard.Library 1.5.0-rc2-24027 4) Re install Code Analysis package - failed here saying v1.22 of code analysis is not compatible. 我还尝试通过执行以下操作将分析器项目的目标框架更改为NetStandard 1.5:1)卸载所有nuget程序包2)更改目标框架3)安装程序包NETStandard.Library 1.5.0-rc2-24027 4)重新安装代码分析软件包-此处失败,因为代码分析v1.22不兼容。

The error message has indicates the error: Microsoft.TeamFoundationServer.ExtendedClient is not compatible with .NETPortable. 错误消息已指示错误:Microsoft.TeamFoundationServer.ExtendedClient与.NETPortable不兼容。

If you are using VSTS or TFS2015, you may try to use REST API . 如果您使用的是VSTS或TFS2015,则可以尝试使用REST API

If you are using TFS2010 or TFS2012, you may check OData API . 如果您使用的是TFS2010或TFS2012,则可以检查OData API

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM