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

查看:72
本文介绍了包还原失败.安装新软件包时回滚“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天全站免登陆