I have recently added a bunch of Sitecore NuGet packages to my solution from their new NuGet server: https://sitecore.myget.org/F/sc-packages/api/v3/index.json
But TeamCity doesn't seem to be able to download these:
[12:45:16][restore] Unable to find version '8.1.160302' of package 'Sitecore.ContentSearch.Linq.NoReferences'.
[12:45:16][restore] Unable to find version '8.1.160302' of package 'Sitecore.ContentSearch.NoReferences'.
[12:45:16][restore] Unable to find version '8.1.160302' of package 'Sitecore.Kernel'.
[12:45:16][restore] Unable to find version '8.1.160302' of package 'Sitecore.Kernel.NoReferences'.
I have amended the list of packages sources in my 'NuGet Installer' build step so that the Sitecore source is the only one, but yet it still can't restore these .dlls. (As a side note: I would have expected other packages to now fail because their source has been removed, but there is no error for those?)
Looking at the logs, I can see the command being fired, which looks correct:
C:\TeamCity\buildAgent\tools\NuGet.CommandLine.2.8.6\tools\NuGet.exe restore C:\TeamCity\buildAgent\work\52ce411043f6b04c\MySolution.sln -Source https://sitecore.myget.org/F/sc-packages/api/v3/index.json
NuGet.config
as part of the solution. I've just been trying a whole load of things to get it working – Proposition