Nuget restore fails when using custom feed in Azure DevOps #74
-
Hi, We are using this SDK in couple of our web projects, and it works fine in both local and cloud build when using nuget.org as package feed. We have introduced our own feed and now nuget restore step fails with this error: Version set in global.json is latest (4.0.88). We have set nuget.config to use our local feed, as well as nuget restore in yml pipeline to use our feed. Could anyone please advise what could be the problem here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Our feed is fully populated and I have also included MSBuild.SDK.SystemWeb package as well. |
Beta Was this translation helpful? Give feedback.
-
Are you using solely the azure nuget feed or have you got both that and nuget.org listed? Do you have package sources enabled and if so have you made sure they are set correctly? |
Beta Was this translation helpful? Give feedback.
Hi @CZEMacLeod,
After a lot of (unhelpful) nuget error messages, we pinpointed the issue to our build agents not having permission to access the feed.
I was able to successfully restore and build project when I connected our feed as an external service instead of internal.
Cheers!