Why can not I install Google.Apis in Package Manager?

0

I try to install Google.Apis but I can not install it I get this message Someone who can help me?

PM> Install-Package Google.Apis -Version 1.30.0
Attempting to resolve dependency 'Google.Apis.Core (≥ 1.30.0)'.
Attempting to resolve dependency 'System.Net.Http (≥ 4.3.1)'.
Install-Package : 'System.Net.Http' already has a dependency defined for 'System.IO'.
At line:1 char:1
+ Install-Package Google.Apis -Version 1.30.0
+ CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
    
asked by Edgar 25.11.2017 в 17:29
source

1 answer

0

This error occurred to me once and I was able to solve this error by updating NuGet Package Manager downloading the official page . Find the version of the visual studio that you are using (probably 15 below because it is included by default in 2017) and download it for that version.

You can also try it by doing the following steps:

  • Open the cmd (command line)
  • In the cmd navigate to the folder of your project and look for a sub-folder called .nuget and access it. For example: C:\> cd c:/proyectos/miaplicacion/.nuget
  • Finally run the following command in the console: nuget update -self
  • This will update nuget.

    Or you can also update it by doing the following:

    Herramientas -> Extensiones y Actualizaciones -> Instalado 
    

    There you look for Nuget and update it.

        
    answered by 27.11.2017 в 14:20