Using the Azure C# SDK - How can I query the organizations AzureDevOps Nuget Artifact Feed?

Jeff Ward 1 Reputation point
2022-04-02T02:27:51.39+00:00

I opened up an issue on the GitHub repo Azure-sdk-for-net and they redirected me here. Here is the link to the issue for more context: https://github.com/Azure/azure-sdk-for-net/issues/27866

---

Library name and version

Microsoft.VisualStudio.Services.Client

Query/Question

Hello,

My question is regarding the C# Azure DevOps SDK. I am unsure of which 'Library' I am referring to, and this is my question.

I see many tutorials and documentations online on how to query the Artifact Feed: https://learn.microsoft.com/en-us/rest/api/azure/devops/artifacts/feed-management/create-feed?view=azure-devops-rest-6.0

My goal is to use the C# SDK to query Azure Artifact feed details, delete artifacts, and get meta-data information about the artifacts.

Specifically, I am looking for a list of 'Versions' that I can query (see last screenshot).

Here is a screenshot from the UI of what I am looking for:

image

image

image

-----

I know that this is possible using the Azure REST API and manual HTTP requests.

My question is, how can I accomplish this using one of the C# SDK Libraries found here: https://learn.microsoft.com/en-us/azure/devops/integrate/concepts/dotnet-client-libraries?view=azure-devops

PS: @Moderator - My tags are wrong, I could not find any suitable tags

Environment

Windows 10, net 6.0 VS2022

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,513 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 67,691 Reputation points
    2022-04-04T07:39:40.417+00:00

    Hi @Jeff Ward

    Welcome to Microsoft Q&A! Thanks for posting the question.

    DevOps is currently not supported in the Q&A forums, the supported products are listed over here https://learn.microsoft.com/en-us/answers/products (more to be added later on).
    You can ask the experts in the dedicated forum over here:
    https://stackoverflow.com/questions/tagged/devops
    https://developercommunity.visualstudio.com/spaces/21/index.html

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    0 comments No comments