使用 packages.config 进行 MSBuild 和包还原 [英] MSBuild and package restore with packages.config

查看:25
本文介绍了使用 packages.config 进行 MSBuild 和包还原的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

仅当项目仍在使用 packages.config 时,是否可以在构建期间使用 MSBuild 恢复包?

Is it possible to restore packages during the build using MSBuild only if projects are still using packages.config?

推荐答案

https://docs.microsoft.com/en-us/nuget/reference/msbuild-targets#restore-target

MSBuild 16.5+ 还支持 packages.config 格式.

MSBuild 16.5+ also has opt-in support for the packages.config format.

使用 msbuild -p:RestorePackagesConfig=true -t:restore;build .

这篇关于使用 packages.config 进行 MSBuild 和包还原的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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