Click here to Skip to main content
15,907,326 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when Installing Following Package
+ Install-Package Google.Apis.Gmail.v1


It gives Error

Install-Package : 'Google.Apis.Gmail.v1' already has a dependency defined for 'NETStandard.Library'.
At line:1 char:1
+ Install-Package Google.Apis.Gmail.v1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
 
PM> 


What I have tried:

Type 'get-help NuGet' to see all available NuGet commands.

PM> Install-Package Google.Apis.Gmail.v1
Posted
Updated 12-Sep-17 20:04pm
Comments
Richard Deeming 12-Sep-17 15:17pm    
It sounds like either you're using an old version of Visual Studio which doesn't support .NET Standard, or there's a problem with that specific package.

Eg: 'AutoMapper' already has a dependency defined for 'NETStandard.Library'[^] - different package, same problem.

1 solution

Update Your all install package and dependencies

+ upgrade-package

+ Install-Package Google.Apis.Gmail.v1
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900