只有当项目仍然使用MSBuild时,才有可能在构建过程中使用packages.config来恢复包吗?
发布于 2020-12-09 01:30:15
https://learn.microsoft.com/en-us/nuget/reference/msbuild-targets#restore-target
MSBuild 16.5+也支持packages.config格式。
使用:
msbuild -p:RestorePackagesConfig=true -t:restore
msbuild -t:build发布于 2018-12-05 17:23:03
发布于 2018-08-21 07:46:48
就我在https://learn.microsoft.com/en-us/nuget/consume-packages/package-restore上的阅读而言,有可能:
MSBuild:使用msbuild /t:restore命令,它还原项目文件中列出的包包(仅限PackageReference)。仅在Visual 2017中包含的NuGet 4.x+和MSBuild 15.1+中提供。
nuget restore和dotnet restore都在适用的项目中使用此命令。
https://stackoverflow.com/questions/48956184
复制相似问题