Search code examples
c#azure-devopsazure-active-directoryazure-artifactsazure-devops-artifacts

How to get the list of all the packages with their versions from Artifacts/Nuget Feed in Azure Devops using C#?


I want to get the list of the packages present in Azure DevOps Artifacts with their latest versions. Can I use a Personal Access token to get this list using C#?

I am not able to find a way to get this through the C# code.


Solution

  • Maybe the Artifact Details API is what you're looking for?

    Otherwise, you might include the dotnet list package command in your build pipeline to be able to have a look at that, but that sounds like more manual labor than you're looking to do :)