Visual Studio 2019中的Nuget.exe

问题描述 投票:0回答:1

我的机器上装有VS2017和VS2019。我在VS2019解决方案资源管理器中缺少很多nuget引用(黄色图标)。我尝试做一个Restore Nuget软件包,我看到:

All packages are already installed and there is nothing to restore.
Time Elapsed: 00:00:00.0560466
========== Finished ==========

我进入程序包管理器控制台并尝试执行以下操作:

nuget restore MySolution.sln

并获得一个

nuget : The term 'nuget' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path 
is correct and try again.
At line:1 char:1

我在硬盘驱动器上环顾四周,只看到C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Enterprise \ MSBuild \ SqlChangeAutomation \ OctoPack \ build \ NuGet.exe中存在的nuget.exe。>

为什么它在2019年也不存在?

谢谢

我的机器上装有VS2017和VS2019。我在VS2019解决方案资源管理器中缺少很多nuget引用(黄色图标)。我尝试做一个Restore Nuget软件包,然后看到:全部...

c# visual-studio-2017 nuget visual-studio-2019
1个回答
1
投票

您可以从here下载Nuget.exe。

© www.soinside.com 2019 - 2024. All rights reserved.