AzureDevops create project library

398 Views Asked by At

I would like to create projects, users and so on via C#. There is a Libary from Microsoft for adding Workitems, Comments, ... (see here). Is there something similar for creating projects and users? I only found the documentation for the API here.

1

There are 1 best solutions below

2
LoLance On BEST ANSWER

Is there something simular for creating Projects and users?

You can use ProjectHttpClient.QueueCreateProject method to create project. It comes from Microsoft.TeamFoundation.Core.WebApi.dll which is also contained in Azure Devops Service .net SDK. (Just like the WorkItemTrackingHttpClient class shared in your question)

And here's the official sample about how to use C# client api to create project.