Adding External packages other than Nuget on Azure DevOps pipeline

960 views Asked by At

I am getting this error -- > No packages exist with this id in source(s): NuGetOrg

I am trying to add an External package which is not available in Nuget.org. We are getting this error on the Azure CI/CD pipeline. How can I add custom packages on DevOps Please help. Thanks in advance.

1

There are 1 answers

3
Levi Lu-MSFT On BEST ANSWER

You can create a nuget feed in your azure devops project.

Please follow the steps given in Microsoft documents to create nuget feed in azure devops.

And then publish your custom packages to the nuget feed in your azure devops project.

After your custom packages are published, you need to choose Feeds to use and select the nuget feed you created in above step in the Nuget Restore task in your pipeline

enter image description here

You pipeline should be able to find your custom packages now.