CasCap.Api.AzureDevOps 4.1.1

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package CasCap.Api.AzureDevOps --version 4.1.1
                    
NuGet\Install-Package CasCap.Api.AzureDevOps -Version 4.1.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CasCap.Api.AzureDevOps" Version="4.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CasCap.Api.AzureDevOps" Version="4.1.1" />
                    
Directory.Packages.props
<PackageReference Include="CasCap.Api.AzureDevOps" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CasCap.Api.AzureDevOps --version 4.1.1
                    
#r "nuget: CasCap.Api.AzureDevOps, 4.1.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CasCap.Api.AzureDevOps@4.1.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CasCap.Api.AzureDevOps&version=4.1.1
                    
Install as a Cake Addin
#tool nuget:?package=CasCap.Api.AzureDevOps&version=4.1.1
                    
Install as a Cake Tool

CasCap.Api.AzureDevOps

Azure DevOps helper library used by the yamlizr global tool. It reads classic Designer Build and Release Definitions through the Azure DevOps REST API and converts them into Azure Pipelines YAML objects.

Purpose

The library owns everything that is not command line presentation:

  • an Azure DevOps REST client for the endpoints the official .NET client libraries do not cover
  • models for the Azure DevOps task/extension catalogue
  • models for the subset of the Azure Pipelines YAML schema that this tool emits
  • the generator that maps a classic definition onto those YAML models

Services

Type Purpose
IApiService / ApiService Retrieves the installed extension catalogue for an organisation and validates generated YAML against the preview-run endpoint.

Utilities

Type Purpose
YamlPipelineGenerator Converts a BuildDefinition or a ReleaseDefinition into a Pipeline, and reports what it could not convert through Warnings.
LiteralMultilineEventEmitter YamlDotNet event emitter which renders multi-line strings as literal block scalars rather than escaped single lines.

YamlPipelineGenerator.Warnings is the library's contract for conversion fidelity: any classic construct that cannot be represented is recorded there rather than dropped silently. Callers are expected to surface it. See issue #182.

Configuration

AzureDevOpsOptions binds the CasCap:AzureDevOpsOptions section.

Property Purpose
PAT Personal Access Token, or an access token issued to a pipeline's build service identity.
OrganisationUri Absolute Uri of the Azure DevOps organisation.
Project Name of the team project to convert.

Class Hierarchy

classDiagram
    class Pipeline
    class Template
    class StageAzDO
    class TriggerAzDO
    class YamlPipelineGenerator
    class ApiService

    Pipeline <|-- Template
    Pipeline *-- StageAzDO
    Pipeline *-- TriggerAzDO
    YamlPipelineGenerator ..> Pipeline : creates
    YamlPipelineGenerator ..> Template : creates
    ApiService ..> YamlPipelineGenerator : supplies task catalogue

Dependencies

NuGet package Purpose
AzurePipelinesToGitHubActionsConverter.Core Azure Pipelines YAML schema types and the GitHub Actions conversion.
CasCap.Common.Extensions Shared collection and string helpers.
CasCap.Common.Net HttpClientBase, the REST client base type.
Microsoft.TeamFoundation.DistributedTask.WebApi Task group and variable group clients.
Microsoft.TeamFoundationServer.Client Build definition client.
Microsoft.VisualStudio.Services.Client Connection and credential types.
Microsoft.VisualStudio.Services.Release.Client Release definition client.
Newtonsoft.Json Required by the Azure DevOps client libraries.
semver Parses classic task version specs such as 2.*.
YamlDotNet YAML serialization.
Project reference Configuration
CasCap.Common.Extensions, CasCap.Common.Net Referenced as projects in Debug, as packages in Release.
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.2.4 35 9/11/2026
4.2.3 90 9/7/2026
4.2.2 94 9/6/2026
4.2.1 92 9/6/2026
4.2.0 93 9/6/2026
4.1.1 96 9/6/2026
4.1.0 114 9/6/2026
4.0.0 98 9/4/2026
3.1.6 87 9/4/2026
3.1.5 99 8/18/2026
3.1.4 92 8/18/2026
3.1.3 138 3/21/2026
3.1.2 140 2/2/2026
3.1.1 131 1/28/2026
3.1.0 341 11/14/2025
3.0.13 190 8/10/2025
3.0.12 223 7/11/2025
3.0.11 288 5/1/2025
3.0.10 216 12/2/2024