Using a authenticated NuGet Service via TeamCity


I have a "NuGet Installer" Step with the package source "%teamcity.nuget.feed.auth.server%". But where do I submit the authentication credentials? I have an entry in Build Features as "NuGet Feed Credentials" but it seems to be ignored because in the Build Log I got the error that I need to insert my credentials. I'am using 9.1.7 of TeamCity. This is a part of the documentation: "Since TeamCity 9.1.4, when using TeamCity as the internal Nuget server, the credentials specified via this build feature are ignored; the internal TeamCity authentication is used." what does this actual mean? 


Hi Sebastian,

What NuGet version do you use? There are several issues: one with NuGet version 3.3.0 and higher: and the second with local agent: Please check the tickets linked.


I think the TW-44438 issue is exactly my problem. Actual I build a little workaround and store the credentials in the nuget configuration file, see:


Thank you for the updated and posting workaround.

Please vote for and watch the issue to get status updates. Hope it will be fixed soon.

Sorry for the inconvenience. 


Please sign in to leave a comment.