Failing to restore nuget packages under Admin account

I have automatic nuget packages restore step configured and it was working fine when running TeamCity service under LocalSystem account on the Windows Server, Azure VM. I had to switch to a different account to make Azure Cloud Service publishing possible. The packages are failing to restore when the TeamCity service are running under the new account. the build logs just keep saying that the build is failing because various official packages are failing to restore:

[restore] Unable to find version 'x' of package 'xyz'.


I am using official nuget feed as well as TeamCity nuget feed with nuget feed credentials build feature configured. I believe this is configured correctly as it is working unde LocalSystem account but not when the services are running under my team city user account. The user account which TeamCity services are running under is an Administratior account. I have tried few trial and error approaches but haven't managed to get it working yet under different than LocalSystem account. Would you have any ideas about things I could try or what can be the reason the nuget restore is failing? Thanks.
2 comments
Comment actions Permalink

Hi Richard,

Please try to run NuGet packages re-indexing as described in this section in documentation. Does it help?

0
Comment actions Permalink

Hi thank you for your reply. I tried to reset as suggested but that didn't seem to make a difference. Still the same error code. Pleas let me know if there is any other information I could provide to help to find the solution.

0

Please sign in to leave a comment.