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

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

    In my case I ran a dotnet restore from the package manager console to get the duplicated key

    PM> dotnet restore
      Determining projects to restore...
    C:\Program Files\dotnet\sdk\3.1.300\NuGet.targets(128,5): error : An item with the same key has already been added. Key: (XXXX.XXX.XX, 1.0.0.0-preview1) [C:\code\MySolution.sln]
    

提交回复
热议问题