Nuget.exe Install - Microsoft.CSharp已经有System.Dynamic.Runtime的依赖项 [英] Nuget.exe Install — Microsoft.CSharp already has a dependency for System.Dynamic.Runtime

查看:3541
本文介绍了Nuget.exe Install - Microsoft.CSharp已经有System.Dynamic.Runtime的依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在CI构建中通过PowerShell预构建脚本安装了一些软件包。最近,我们收到了部分成功的电子邮件通知,并提供了以下信息:

We install some packages via a PowerShell pre-build script in our CI build. Recently, we're been receiving Partially Successful email notifications with the following information provided:


Microsoft.CSharp 'System.Dynamic.Runtime'

'Microsoft.CSharp' already has a dependency defined for 'System.Dynamic.Runtime'

下面是PowerShell脚本中生成信息的命令:

Here is the command from the PowerShell script that generates the information:

cd $source\MyNet\MyWeb\MyComp.WebViewer\packages
&"C:\Program Files\Microsoft Team Foundation Server 14.0\Tools\Nuget.exe" install newtonsoft.json

能够处理/忽略此消息,以便收到完全成功的构建通知。

I would like to be able to handle/ignore this message so that fully Successful build notifications are received.

这似乎没有导致任何问题。

It doesn't seem to be causing any problems otherwise.

有人有任何nuget.exe命令行参数可能绕过这样的错误吗?

Does anyone have any nuget.exe command line parameters that might bypass such an error?

推荐答案

错误消息已经具有为定义的依赖关系通常表示您使用的NuGet的版本太旧。

The error message already has a dependency defined for usually indicates that the version of NuGet you are using is too old. So you should look at updating it.

当使用的NuGet包使用组依赖关系和目标框架,NuGet的版本是你可以发生这个特殊的错误使用不知道。

This particular error can happen when the NuGet packages being used are using a group dependency with a target framework which the version of NuGet you are using does not know about.

这篇关于Nuget.exe Install - Microsoft.CSharp已经有System.Dynamic.Runtime的依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆