Automatron.AzureDevOps 0.0.0-alpha.2

This is a prerelease version of Automatron.AzureDevOps.
There is a newer prerelease version of this package available.
See the version list below for details.

Requires NuGet 5.9 or higher.

dotnet add package Automatron.AzureDevOps --version 0.0.0-alpha.2                
NuGet\Install-Package Automatron.AzureDevOps -Version 0.0.0-alpha.2                
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="Automatron.AzureDevOps" Version="0.0.0-alpha.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Automatron.AzureDevOps --version 0.0.0-alpha.2                
#r "nuget: Automatron.AzureDevOps, 0.0.0-alpha.2"                
#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.
// Install Automatron.AzureDevOps as a Cake Addin
#addin nuget:?package=Automatron.AzureDevOps&version=0.0.0-alpha.2&prerelease

// Install Automatron.AzureDevOps as a Cake Tool
#tool nuget:?package=Automatron.AzureDevOps&version=0.0.0-alpha.2&prerelease                

Automatron.AzureDevOps

NuGet version (Automatron.AzureDevOps) Build status

The Automatron.AzureDevOps .NET library enables you to write AzureDevOps workflows as .Net methods

Automatron.AzureDevOps also generates the AzureDevOps pipeline yaml evry time the project is compiled.

Steps can be are defined as void/async methods on one or many job classes

Inheritance and interfaces are supported as well

Quick start

The project needs to be in git repository to able to compute paths correctly or have the RootPath property set

using System.Reflection;
using Automatron.AzureDevOps;
using Automatron.AzureDevOps.Annotations;
using Automatron.AzureDevOps.Tasks;

return await new AzureDevOpsRunner().RunAsync(args);

[Pipeline("Ci")]
[CiTrigger(Batch = true, IncludeBranches = new[] { "main" }, IncludePaths = new[] { "src" })]
[Pool(VmImage = "ubuntu-latest")]
[Stage]
[Job]
public class Pipeline
{
    [Step(Emoji = "๐Ÿ—"]
    public async Task Build()
    {
    }

    [Step(Emoji = "๐Ÿงช", DependsOn = new[] { nameof(Build) })]
    public async Task Test()
    {
    }

    [Step(Emoji = "๐Ÿ“ฆ", DependsOn = new[] { nameof(Test) })]
    public async Task Pack()
    {
    }
}

Pipelines, Stage, Jobs, Steps can be run via cmd arguments dotnet run -- Ci

Variables

Variables can mapped as properties

using System.Reflection;
using Automatron.AzureDevOps;
using Automatron.AzureDevOps.Annotations;
using Automatron.AzureDevOps.Tasks;

return await new AzureDevOpsRunner().RunAsync(args);

[Pipeline("Ci")]
[CiTrigger(Batch = true, IncludeBranches = new[] { "main" }, IncludePaths = new[] { "src" })]
[Pool(VmImage = "ubuntu-latest")]
[VariableGroup("nuget")]
[Stage]
[Job]
public class Pipeline
{
    [Variable(Description = "The nuget api key")]
    public Secret? NugetApiKey { get; set; }

    [Step(Emoji = "๐Ÿ—"]
    public async Task Build()
    {
    }

    [Step(Emoji = "๐Ÿงช", DependsOn = new[] { nameof(Build) })]
    public async Task Test()
    {
    }

    [Step(Emoji = "๐Ÿ“ฆ", DependsOn = new[] { nameof(Test) })]
    public async Task Pack()
    {
    }
}

Parameters

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
0.0.0-alpha-11.6 297 11/2/2024
0.0.0-alpha-11.5 188 10/12/2024
0.0.0-alpha-11.4 49 10/12/2024
0.0.0-alpha-11.3 52 10/6/2024
0.0.0-alpha-11.2 75 10/1/2024
0.0.0-alpha-11 199 6/2/2023
0.0.0-alpha.10 125 1/6/2023
0.0.0-alpha.9 106 1/2/2023
0.0.0-alpha.8 111 11/23/2022
0.0.0-alpha.7 101 11/21/2022
0.0.0-alpha.6 102 11/16/2022
0.0.0-alpha.4 110 11/15/2022
0.0.0-alpha.3 101 11/15/2022
0.0.0-alpha.2 104 11/11/2022
0.0.0-alpha.1 108 11/10/2022