简体   繁体   English

NuGet添加参考错误—无法安装软件包

[英]NuGet add reference error— fail to installi packages

Thanks for checking out my question. 感谢您检查我的问题。 I know it has been already asked in Stackoverflow but the answers could not solve my problem, so I have to flag here and wait for your help. 我知道它已经在Stackoverflow中被问到了,但是答案不能解决我的问题,因此我必须在这里标记并等待您的帮助。

I am using Win10 sys. 我正在使用Win10 sys。 Visual Studio 2013. The trouble is, I could not install MySQL packet to my visual studio. Visual Studio2013。问题是,我无法将MySQL数据包安装到我的Visual Studio中。 According to some answers, I cleared the package cache, but still failed. 根据一些答案,我清除了程序包缓存,但仍然失败。 The error msg is: 错误消息为:

在此处输入图片说明

Please feel free to advice. 请随时提出建议。

Right-click on your project in solution explorer and select " Manage NuGet Packages.. ". 在解决方案资源管理器中右键单击您的项目,然后选择“ Manage NuGet Packages .. ”。

1) Check which version of the Google.Protobuf package you have and remove it from your project. 1)检查您拥有哪个版本的Google.Protobuf软件包,并将其从项目中删除。

2) Retry to install your MySql.Data package. 2)重试安装您的MySql.Data软件包。

3) Then check if the version of Google.Protobuf installed with your MySql.Data is ok compared to the old one. 3)然后检查与您的MySql.Data 一起安装的Google.Protobuf的版本与版本是否兼容 If necessary, use the Package Manager to upgrade the Google.Protobuf package to the last recent version. 如有必要,请使用“程序包管理器”将Google.Protobuf程序包升级到最新版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM