I have a package on my TeamCity NuGet feed, built by TeamCity, but a dependent TC project cannot see it during package restore.
[14:05:02][Exec] E:\TeamCity-BuildAgent\work\62023563850993a7\Web.nuget\nuget.targets(88, 9): Unable to find version '1.0.17.0' of package 'MarkLogicManager40'.
[14:05:02][Exec] E:\TeamCity-BuildAgent\work\62023563850993a7\Web.nuget\nuget.targets(88, 9): error MSB3073: The command ""E:\TeamCity-BuildAgent\work\62023563850993a7\Web.nuget\nuget.exe" install "E:\TeamCity-BuildAgent\work\62023563850993a7\ProductMvc\packages.config" -source "" -RequireConsent -solutionDir "E:\TeamCity-BuildAgent\work\62023563850993a7\Web\ "" exited with code 1.
Note that the source
parameter in the NuGet command line is empty. Could this be the cause?
Best Answer
As of today, NuGet.targets has the following way to specify custom feed(s):
Another option is to put NuGet.config next to the solution file: