'Portable.BouncyCastle' already has a dependency defined for 'System.Collections'

北战南征 提交于 2019-12-25 01:19:32

问题


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


回答1:


The already has a dependency defined for error when installing a NuGet package is due to a bug in older versions of 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.




回答2:


This issue is fixed if you use nuget version: 3.4.4+

https://dist.nuget.org/index.html

I would recommend using latest version



来源:https://stackoverflow.com/questions/36656552/portable-bouncycastle-already-has-a-dependency-defined-for-system-collections

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!