'Portable.BouncyCastle'已经具有为'System.Collections'定义的依赖项 [英] 'Portable.BouncyCastle' already has a dependency defined for 'System.Collections'

查看:703
本文介绍了'Portable.BouncyCastle'已经具有为'System.Collections'定义的依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在还原我解决方案的NuGet软件包的命令期间,Bamboo构建服务器上会发生此错误.我可以通过禁用软件包还原任务来绕过此错误;但是,这只是临时解决方法.有什么方法可以在运行任务时检查依赖项是否存在?在运行MSBUILD之前会发生此错误.我正在使用.NET 4.5

This error occurs on the Bamboo build server during a command that restores my solution's NuGet packages. I can bypass this error by disabling the package restore task; however, this is only a temporary fix. Is there any way I can check if the dependency exists while running the task? This error occurs before MSBUILD is running. I am using .NET 4.5

推荐答案

安装NuGet软件包时出现already has a dependency defined for错误是由于

The already has a dependency defined for error when installing a NuGet package is due to a bug in older versions of NuGet.

您应该查看在构建服务器上更新NuGet的情况,或运行您自己的构建步骤,该步骤使用单独下载或部署的NuGet版本.

You should look at updating NuGet on the build server or run your own build step that uses a version of NuGet that you download or deploy separately.

这篇关于'Portable.BouncyCastle'已经具有为'System.Collections'定义的依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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