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

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

    Looks like NuGet is finding a duplicate Portable Class Library (PCL) profile on your machine. It is shame the key is not logged in the exception callstack which would make things easy.

    You could try Jon Skeet's PclPal program which can list the PCL profiles and see if there's anything duplicated.

    I have another MonoPcl program that does a similar thing. It refers to Mono but works on Windows. It uses the NuGet source code so it will have the same problem as you are seeing in Visual Studio. However you should be able to modify the code to catch the exception or put some extra logging to see what the duplicate PCL profile is that is causing the problem.

提交回复
热议问题