如何使用 NuGet packages.config 文件? [英] How to use the NuGet packages.config file?

查看:71
本文介绍了如何使用 NuGet packages.config 文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在解决方案中看到我的每个项目都有一个 packages.config 文件.它包含有关各种程序集信息的信息.我期待 NuGet 会自动扫描这些 packages.config 并根据需要下载.但它没有.我需要手动安装所有软件包吗?

I see a packages.config file for each of my projects in a solution. It contains info about various assemblies info. I am expecting that the NuGet will automatically scan these packages.config and download as necessary. But it didn't. Do I need to manually install all the packages?

推荐答案

如果您右键单击有问题的项目,您可以从菜单中选择管理 nuGet 包".完成后,您可以单击左侧的已安装的软件包"以查看您当前已安装的软件包.这些是您在packages.config"文件中看到的内容.如果您希望更新软件包或重新安装它们,您可以通过此处的界面单击卸载",然后在列表中找到它们并再次重新安装它们.

If you right click the project in question you can select "Manage nuGet Packages" from the menu. After you do that you can click "installed packages" on the left hand side to see the packages that you currently have installed. These are what you are seeing in your "packages.config" file. If you wish to update the packages or reinstall them you can do that through the interface here by clicking "uninstall", then finding them in the list an re-installing them again.

或者,您可以使用包管理器控制台来执行更新、安装旧版本或使用 nuget 管理器进行的各种操作.请参阅此处,了解相关详情.(有关更新包的信息位于页面底部).

Alternatively you can use the package manager console to do things like updating, installing older versions or all sorts of things with the nuget manager. See here for some details about that. (Information about updating a package is at the bottom of the page).

祝你好运!

这篇关于如何使用 NuGet packages.config 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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