为什么不安装包显示我刚刚安装包? [英] Why doesn't Installed packages show the package I just installed?

查看:266
本文介绍了为什么不安装包显示我刚刚安装包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始使用的NuGet。我的一些项目,允许我加入库包引用到的NuGet包,但后来当我选择安装的软件包我没有看到列出的软件包。 为什么不呢?

I've been getting started with Nuget. Some of my projects allow me to Add Library Package Reference to a Nuget package, but then when I select "Installed Packages" I don't see any packages listed. Why not?

编辑 - 我知道答案(见下文),是要回答这个自己是一个社区服务,但不能再8小时,由于我的跛脚代表的分数。

EDIT - I know the answer (see below), was going to answer this myself as a "community service" but can't for another 8hrs due to my lame rep score.

答案是: 该项目已经有在同一目录中的csproj文件packages.config文件,但packages.config文件没有添加到项目中。由固定的添加现有项目并选择packages.config文件。

Answer will be: The project already had a packages.config file in the same directory as the csproj file, BUT the packages.config file was not added to the project. Fixed by "Add existing item" and selecting the packages.config file.

请注意:在事后,粉红色的packages.config已经存在,跳过在的NuGet进度窗口消息应该提醒我这个

Note: in hindsight, the pink '"packages.config" already exists, Skipping' message in the nuget progress window should have alerted me to this.

希望这可以帮助别人。

推荐答案

从问题(粘贴,所以这个没有按T显示为未回答)

(Pasted from the question, so this doesn't show up as unanswered)

该项目已经有   在相同的packages.config文件   目录作为的csproj文件,但   packages.config文件中不添加   该项目。通过加入现有的固定   项并选择   packages.config文件。

The project already had a packages.config file in the same directory as the csproj file, BUT the packages.config file was not added to the project. Fixed by "Add existing item" and selecting the packages.config file.

请注意:在事后,粉红色   'packages.config已存在,   跳过的消息在的NuGet   进度窗口应该提醒我   此。

Note: in hindsight, the pink '"packages.config" already exists, Skipping' message in the nuget progress window should have alerted me to this.

这篇关于为什么不安装包显示我刚刚安装包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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