NuGet Feed Credentials not working

I am trying to get the NuGet Installer step to work with the built in TeamCity NuGet server. I have set up an install step with the source set to %teamcity.nuget.feed.auth.server% and a NuGet Feed Credentials build feature with the feed set to %teamcity.nuget.feed.auth.server%. The password and username are both valid (I set them to mine for now). However I still get an error in the build log:

[install] An error occurred while loading packages from'http://<EDITED>/httpAuth/app/nuget/v1/FeedService.svc': Cannot prompt for input in non-interactive mode.

[install] Please provide credentials for: http://<EDITED>/httpAuth/app/nuget/v1/FeedService.svc

[install] UserName:
Comment actions Permalink

Hi Jason.

Thank you for feedback.
NuGet 2.5 broke backward compatibility somewhere and our authentication logic stopped to work.
I've added issue TW-30228, please watch it for updates.

As a workaroung you can use Nuget version 2.2.

Comment actions Permalink

Sorry to necro this, I'm on Nuget Version 2.8.2 and I'm getting the same issue.
I'd post on the ticket but I don't have access to youtrack.

I downgraded nuget to 2.2.1 but got an error: Unknown command: 'restore'
My server version is 8.1.1

Instead of necro-ing this thread, i've created a new one in case its a different issue:


Please sign in to leave a comment.