在预构建事件中更新特定的nuget软件包

时间:2018-08-10 06:54:40

标签: nuget nuget-package-restore

我们正在使用VS 2017 Enterprise版本。我的项目使用了一些nuget包。所有这些软件包都是由我们的团队构建的。这些在网络路径中共享。他们经常会不断更新这些软件包,而我应该使用最新的nuget软件包。因此,在预构建事件命令行中,我尝试使用

"nuget update -Id <package name>"

但是当我构建应用程序时,出现错误

The command "nuget update -Id UWPClass" exited with code 1

显示输出窗口

No packages.config, project or solution file specified. Use the -self switch to update NuGet.exe.

我使用的默认软件包管理员格式为 PackageReference ,因此我没有package.config。对解决此问题有帮助吗?

0 个答案:

没有答案