Cant install Nuget Package in VS2015 RRS feed

  • Question

  • Get the following error installing the nuget package in VS2015:

    PM> Install-Package Microsoft.Azure.KeyVault

    Attempting to gather dependencies information for package 'Microsoft.Azure.KeyVault.1.0.0' with respect to project 'JECROFTScratch', targeting '.NETFramework,Version=v4.5.2'

    Attempting to resolve dependencies for package 'Microsoft.Azure.KeyVault.1.0.0' with DependencyBehavior 'Lowest'

    Install-Package : An entry with the same key already exists.

    At line:1 char:1

    + Install-Package Microsoft.Azure.KeyVault

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

        + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception

        + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

    My coworker is able to add it using VS2013, but 2015 doesn't see to think the packages are available for  Bond.Core.cs.StrongNameSigned.


    Tuesday, August 4, 2015 5:18 PM

All replies

  • Hi JeffDC ,

    What version of Nuget are you trying to install like 3.0 ( available only for VS2015 only ) .

    Azure key vault requires NuGet 2.5 or higher. Please check and confirm the same.


    Shirisha Paderu

    • Proposed as answer by Shirisha Paderu Saturday, August 8, 2015 1:06 PM
    • Unproposed as answer by JeffDC Tuesday, August 11, 2015 12:07 AM
    Wednesday, August 5, 2015 2:40 PM
  • Hey Are you able to resolve , it I am also getting the same Error.

    My nugget Is Updated 3.1

    Monday, August 10, 2015 9:31 AM
  • I am with the same problem, any solution was found? My nuget is updated too.
    Monday, August 10, 2015 10:07 PM
  • I am using the latest in VS2015, so is my coworker, we both have the same issue. Are you saying you dont have this problem trying to load the nuget package in 2015 to a new project? We can 100% repro.


    Tuesday, August 11, 2015 12:06 AM
  • Hi,

    We are checking on it and will get back to you on any findings.


    Shirisha Paderu

    Tuesday, August 11, 2015 3:48 PM
  • Any updates ? This happens with packages that have dependencies and one of the dependencies already included either directly or as part of another package.
    Wednesday, August 19, 2015 1:53 AM
  • I debugged it http://apmtips.com/blog/2015/09/21/nuget-error-an-entry-with-the-same-key-already-exists/

    Here is an issue I filed on NuGet: https://github.com/NuGet/Home/issues/1412

    It turns out that some server would merge dependencies for different platforms. Just clean cache at %userprofile%\.nugget and %localappdata%\nugget

    Tuesday, September 22, 2015 4:39 PM
  • I'm still seeing this error, even after trying Sergey's suggestion., Nuget is up-to-date. Specifically, this package causes the failure:


    Wednesday, October 28, 2015 3:42 PM
  • @palenshus1, I's assume you have ms-nuget as one of nugget sources? That Nuget source is one of sources that causes the issue. Please remove it from the list of sources or at least ensure that you downloaded the NuGet Microsoft.ApplicationInsights from nugget.org after cleaning up the cache. If the issue will not be resolved - ask into this GitHub thread:


    Wednesday, October 28, 2015 8:06 PM