Install nuget package get error

时间:2018-04-18 18:07:36

标签: c# visual-studio nuget

I am trying to install the nuget package GeoLocation, EntityFramework to my project by using VS 2017 Professional. While I am getting the following error.

Error : Package restore failed. Rolling back package changes for 'VizsafeWindows'.

I have tried the following methods but none will work:

  • Deleted the %AppData%/Nuget/Nuget.config and restarted the VS .

  • Closing and reopening the VS.

  • Deleted all the packages and installed once again.

2 个答案:

答案 0 :(得分:0)

尝试重启机器然后再尝试 在包管理器控制台中触发命令 Update-Package -reinstall

答案 1 :(得分:0)

  

错误:程序包还原失败。回滚'VizsafeWindows'的包裹更改。

我尝试将这两个软件包安装到不同的项目类型,当我将它们安装到UWP项目时遇到了同样的错误。那么,您的项目类型是UWP吗?

当我打开输出窗口时,我将收到以下详细的错误消息:

enter image description here

正如显示的错误消息一样,此问题的原因是这些包与uap10.0.10586(UAP,Version = v10.0.10586)不兼容。

要解决此问题,我们必须等待这些程序包的作者更新程序包以支持UWP。您可以查看Github上的similar issue

希望这有帮助。