包还原失败.在安装新包时回滚“ConsoleApp1"的包更改 [英] Package restore failed. Rolling back package changes for 'ConsoleApp1' while installing new package

查看:15
本文介绍了包还原失败.在安装新包时回滚“ConsoleApp1"的包更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到 包恢复失败.在安装新包时回滚ConsoleApp1" 的包更改.特别是我正在尝试安装 Dropbox API,但我尝试了其他几个包并获得了相同的结果.

我通过右键单击项目并选择 Manage nuGet Packages... 进行安装,然后选择包并单击安装.

NuGet 能够连接到 NuGet 服务器,因为包似乎正在下载.下载信息很快在屏幕上闪烁,所以我用录屏软件捕捉到它,看看是否有错误信息.没有.

我将 Visual Studio 2017 更新到了最新的补丁级别.我的 windows 10 机器也是最新的.

我要安装的项目是一个新创建的Console App(.Net Core).

以下是我查看的其他问题:

I get Package restore failed. Rolling back package changes for 'ConsoleApp1' while installing a new package. In particular I am trying to install the dropbox API, but I tried several other packages and get the same result.

I install by right clicking on the project and choosing Manage nuGet Packages... Then I select the package and click Install.

The NuGet is able to connect with the NuGet server as the package seems to download. The download information flashes on the screen pretty quick so I captured it with screen recording software to see if there were error messages. There were none.

I updated visual studio 2017 to latest patch level. My windows 10 machine is also at the latest level.

The project I am trying to install into is a freshly created Console App(.Net Core).

Here are the other questions I looked at:

Package restore failed. Rolling back package changes does not have any responses because it is not a well developed question.

package restore failed rolling back package change for ' myproject' in vs 2017 .net mvc core project Yet another poorly worded question with no viable answers.

Package restore failed. Rolling back package changes for 'myproject' in vs 2017 in MVC Core That one is trying to update packages, not install new.

Nuget - Package restore failed. Rolling back package changes for 'WebApplication1'. 0 Seems to be for a custom package.

I am new to using Visual Studio.

解决方案

To expand on @Michael Potter's answer, create a Console App (.NET Framework), NOT Console App (.NET Core).

这篇关于包还原失败.在安装新包时回滚“ConsoleApp1"的包更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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