#39;Portable.BouncyCastle#39; already has a dependency defined for #39;System.Collections#39;(“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
错误是由于 旧版本 NuGet 中的错误.
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"定义了一个依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:“Portable.BouncyCastle"已经为“System.Collections"定义了一个依赖项


基础教程推荐
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01