Nuget Restore via build server “unable to find version”

后端 未结 6 2142
执念已碎
执念已碎 2021-02-06 21:38

I have a VS solution and as part of a TeamCity Build, we restore packages from both a private NuGet feed (myget) and the public feed (nuget.org). Most packages restore fine, but

6条回答
  •  醉话见心
    2021-02-06 21:59

    The reason why the build failed, was an old version of nuget.exe. I finally solved this problem by downloading the latest version and put this executable in the Program Files x86 folder. Then I created a new system variabele to point to this executable. After that I add a NuGetInstaller package in my TFS Build Definition to let me configure TFS using this new NuGet.exe. This link helped me to let TFS use this new NuGet version

提交回复
热议问题