Issue with Nuget Install packages

In the cloud hosted build pipeline, one of the step is to install Nuget Packages. In past you could use NuGet command for this with version 0 which was marked for deprecation for quite some time. Last week the version 0 is deprecated meaning you would get a stopping error if you still use this step in your build pipeline.

To can easily avoid this issue by updating to version 2

Simply change the Task version to 2 and use custom Command as shown below

with the command

install -NonInteractive $(build.sourcesDirectory)\Tools\Build\packages.config -ConfigFile $(build.sourcesDirectory)\Tools\Build\nuget.config -Verbosity Detailed -ExcludeVersion -OutPutDirectory $(NugetsPath)        


Make sure that you adjust the path of the buget.config and package.config file as per your project repository.

要查看或添加评论,请登录

Navdeep Sheokand的更多文章

社区洞察

其他会员也浏览了