对于我在 .NET 中的小示例项目(直接在命令行上构建而不使用 Visual Studio),我想直接使用Nuget.exe
来检索我需要的库,而不必在源存储库中提交它们。
我已经能够使用命令安装它们
nuget install packages.config -o $destinationFolder
在 a 中指定所需的包packages.config
(如 Visual Studio 中的 Nuget)。但是,我无法更新已安装的软件包。我试过使用这个命令
nuget update packages.config -r $destinationFolder
但Nuget.exe
抱怨是
unable to locate project file for '...packages.config'`.
我在互联网上搜索过,但我只在 Nuget 论坛中找到了一个类似的问题,没有答案。