无法重新安装软件包 [英] Can't reinstall package

查看:41
本文介绍了无法重新安装软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在新的 Win8.1 重新安装时,我的所有代码都从备份中恢复,当我发出命令 update-package -reinstall -project ui 时,我突然收到一个黄色的 NuGet 警告:

On a new Win8.1 reinstall, with all of my code restored from backup, I'm suddenly now getting a yellow NuGet warning when I issue the command update-package -reinstall -project ui:

跳过在项目Ui"中重新安装包AeroWizard 2.0.9",因为包源中不存在该包.

Skipped reinstalling package 'AeroWizard 2.0.9' in project 'Ui' because the package does not exist in the package source.

我正在使用 repositoryPath 功能,在 %AppData%\NuGet\NuGet.config 中指定 D:\Dev\Packages.

I'm using the repositoryPath feature, specifying D:\Dev\Packages in %AppData%\NuGet\NuGet.config.

我已经检查过该包存在于源代码中.这在重新安装之前没有发生.

I've checked and the package exists in the source. This wasn't happening before the reinstall.

我看到burnt1ce在这里遇到了同样的问题,但不幸的是,他还没有收到回复.

I see that burnt1ce is having the same problem here, but unfortunately he's received no reply yet.

我已经尝试了所有这些,但没有任何帮助:

I've tried all of these, but nothing helps:

  1. 从项目中卸载包
  2. D:\Dev\Packages
  3. 中删除包
  4. 清除包缓存
  5. 重新下载包
  6. 在每个步骤中重新启动 Visual Studio,保存所有更改

这个项目中我的 5 个包中有 4 个发生了这种情况:

This is happening with 4 of my 5 packages in this project:

- AeroWizard
- DotNetZip
- EntityFramework.SqlServerCompact
- Microsoft.SqlServer.Compact

这个工作正常:

- EntityFramework

这个警告是什么意思,我该如何解决?

What does this warning mean and how can I fix it?

推荐答案

如果 NuGet 包在当前选择的包源中找不到,NuGet 将跳过重新安装它,因为重新安装会导致 NuGet 包卸载失败.

NuGet will skip reinstallation of a NuGet package if it cannot find it in the currently selected package source since the reinstall would fail leaving the NuGet package uninstalled.

因此值得检查包管理器控制台中当前选择的包源是什么,因为它可能是没有 NuGet 包的包源.

So it is worth checking what the currently selected package source in the Package Manager Console is since it may be a package source that does not have the NuGet package.

这篇关于无法重新安装软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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