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

后端 未结 12 1373
太阳男子
太阳男子 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:30

    This happens in the .Net Core and .Net Standard Portable Class Library space a lot. Even though I have not traced the true root of the problem it seems to happen most when I directly modify the project.json dependencies section with packages that have a lot of other external dependencies (that have terms associated with them).

    If you can identify the library responsible and remove all the dependencies and use the proper nuget package management tool to add the packages. It has not uncommon to have to delete and recreate the CLI completely!

提交回复
热议问题