![]() |
VOOZH | about |
Requires NuGet 5.9 or higher.
dotnet add package Automatron --version 1.0.1
NuGet\Install-Package Automatron -Version 1.0.1
<PackageReference Include="Automatron" Version="1.0.1" />
<PackageVersion Include="Automatron" Version="1.0.1" />Directory.Packages.props
<PackageReference Include="Automatron" />Project file
paket add Automatron --version 1.0.1
#r "nuget: Automatron, 1.0.1"
#:package Automatron@1.0.1
#addin nuget:?package=Automatron&version=1.0.1Install as a Cake Addin
#tool nuget:?package=Automatron&version=1.0.1Install as a Cake Tool
The Automatron Platform is a collection of .NET libraries to help .Net Developers create automation workloads in the in the same language as your .Net applications
Platform support: .NET 8.0 and later.
๐ NuGet version (Automatron.Tasks)
The Automatron.Tasks .NET library is a task automation system that enables you to write task based workflows as .Net methods
Tasks can be are defined as void/async methods on one or many classes
Inheritance and interfaces are supported as well
Sample and add a reference to Automatron.Tasks.Program.cs with:using Automatron.Tasks;
using Automatron.Tasks.Annotations;
return await new TaskRunner().RunAsync(args);
namespace Sample;
public class Build
{
[Task(Default = true)]
public void Default()
{
Console.WriteLine("Hello, world!");
}
[Task]
public void Build()
{
Console.WriteLine("Building my app");
}
}
dotnet run or F5 in Visual Studio:Tasks can be run via cmd arguments dotnet run -- Build
Dependencies are expression via the attributes
using Automatron.Tasks;
using Automatron.Tasks.Annotations;
return await new TaskRunner().RunAsync(args);
namespace Sample;
public class Build
{
[Task(Default = true)]
[DependentOn(nameof(Build))]
public void Default()
{
Console.WriteLine("Hello, world!");
}
[Task]
public void Build()
{
Console.WriteLine("Building my app");
}
}
๐ NuGet version (Automatron.AzureDevOps)
The Automatron.AzureDevOps .NET library enables you to write AzureDevOps workflows as .Net methods
Automatron.AzureDevOps also generates the AzureDevOps pipeline yaml every 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
The project needs to be in git repository to able to compute paths correctly or have the RootDir 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 = ["main"], IncludePaths = ["src"])]
[Pool(VmImage = "ubuntu-latest")]
[Stage]
[Job]
public class Pipeline
{
[Step(Emoji = "๐"]
public async Task Build()
{
}
[Step(Emoji = "๐งช", DependsOn = [nameof(Build)])]
public async Task Test()
{
}
[Step(Emoji = "๐ฆ", DependsOn = [nameof(Test)])]
public async Task Pack()
{
}
}
Pipelines, Stage, Jobs, Steps can be run via cmd arguments dotnet run -- Ci
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 = ["main"], IncludePaths = ["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 = [nameof(Build)])]
public async Task Test()
{
}
[Step(Emoji = "๐ฆ", DependsOn = [nameof(Test)])]
public async Task Pack()
{
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 2 NuGet packages that depend on Automatron:
| Package | Downloads |
|---|---|
|
Automatron.AzureDevOps
The Automatron.AzureDevOps .NET library enables you to write AzureDevOps workflows as .Net methods |
|
|
Automatron.Tasks
The Automatron.Tasks .NET library is a task automation system that enables you to write task based workflows as .Net methods |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.1 | 626 | 4/14/2025 |
| 1.0.1-alpha.0.1 | 222 | 4/14/2025 |
| 1.0.0 | 453 | 4/13/2025 |
| 0.0.0-alpha-11.7 | 185 | 4/11/2025 |
| 0.0.0-alpha-11.6 | 1,490 | 11/2/2024 |
| 0.0.0-alpha-11.5 | 288 | 10/12/2024 |
| 0.0.0-alpha-11.4 | 139 | 10/12/2024 |
| 0.0.0-alpha-11.3 | 176 | 10/6/2024 |
| 0.0.0-alpha-11.2 | 170 | 10/1/2024 |
| 0.0.0-alpha-11 | 542 | 6/2/2023 |
| 0.0.0-alpha.10 | 283 | 1/6/2023 |
| 0.0.0-alpha.9 | 256 | 1/2/2023 |
| 0.0.0-alpha.8 | 232 | 11/23/2022 |
| 0.0.0-alpha.7 | 253 | 11/21/2022 |
| 0.0.0-alpha.6 | 262 | 11/16/2022 |
| 0.0.0-alpha.4 | 268 | 11/15/2022 |
| 0.0.0-alpha.3 | 253 | 11/15/2022 |
| 0.0.0-alpha.2 | 264 | 11/11/2022 |
| 0.0.0-alpha.1 | 255 | 11/10/2022 |