Unable to consumer from internal nuget feed

I have an internal nuget feed (which is external to team city). One of my build steps is publishing to the feed and that works fine. However I am unable to consume from the feed.

I did add the nuget feed to build features as seen below

 

but when I try to build I get errors saying

"

    /opt/buildAgent/work/da362795fbdc1f30/GeneralLedgerUI/Server/GeneralLedgerUI.Server.csproj : error NU1101: Unable to find package Company.Building.Blocks. No packages exist with this id in source(s): nuget.org"

As a work around I added 2 build steps one 1 to add the nuget source and one to remove it. This is working but it is not ideal

 
0
4 comments
Hi! The "NuGet feed credentials" build feature does not add a restore source. It only adds the possibility to specify credentials. So you will still need to make sure that the feed URL is listed among the restore sources during the restore process.
0

how do I do that?

0

You can specify the source feed URL in the .NET runner options when the restore command is selected.

0

Thank you so much! That fixed the issue for me

0

Please sign in to leave a comment.