使用NuGet添加包时会出错 [英] When adding package using NuGet then gives error

查看:594
本文介绍了使用NuGet添加包时会出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装以下套餐时

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

推荐答案

更新您的所有安装包和依赖项



Update Your all install package and dependencies

+ upgrade-package

+ Install-Package Google.Apis.Gmail.v1


这篇关于使用NuGet添加包时会出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆