installing nuget package “same key has already been added.”

后端 未结 12 1409
太阳男子
太阳男子 2020-12-10 00:38

i am trying to install Microsoft.Bcl.Build 1.0.14

nuget returns

Installing \'Microsoft.Bcl.Build 1.0.14\'. Successfully installed \'Microsoft.Bcl.Bu         


        
12条回答
  •  没有蜡笔的小新
    2020-12-10 01:24

    There is yet another path that produces this error. Here is how to reproduce it:

    (1) Create a nuget package from a VS project (project 1).
    (2) In project 2 that references project 1, install the project 1 nuget package.
    (3) the installation will fail with the "same key" error.

    The solution is to simply remove the reference to project 1 before installing the nuget package.

提交回复
热议问题