Visual studio 2017 社区版 - Nuget.exe 未找到

Visual studio 2017 community Edition - Nuget.exe not found

我一直在尝试根据我从 MSDN 和其他来源在线找到的各种文档和说明来配置项目级别 nuget.config 文件。我安装了 visual studio 2017 社区版。我似乎找不到 nuget.exe 所以我可以用我的设置配置本地 nuget.config 文件并告诉 nuget 使用新的项目级别 nuget.config.

https://docs.microsoft.com/en-us/nuget/reference/nuget-config-file#config-section https://docs.microsoft.com/en-us/nuget/consume-packages/configuring-nuget-behavior

我在管理员模式下启动了开发人员命令提示符,当我键入 NUGET 访问 nuget.exe 时,我收到错误消息,指出找不到命令。 我想弄清楚我需要去哪里,所以当我 运行 以下命令 nuget 可以解析时:

nuget config -set repositoryPath=c:\packages -configfile .\myApp\NuGet.Config

我得到:

'nuget' is not recognized as an internal or external command, operable program or batch file.

我尝试在我的机器上到处搜索 nuget.exe,但似乎找不到。

需要重新下载安装exe吗?它似乎已经内置于 visual studio 中,理想情况下我想利用安装的相同版本。 非常感谢任何意见、想法或帮助。

非常感谢!!!!

发现 answer.While 包管理器控制台可用,并随 visual studio 2017 一起提供。Nuget.exe 不包含,只有 nuget 的 dll 包含。 NUGET 的下载页面中清楚地概述了这一点。

https://www.nuget.org/downloads