Automatron.Tasks
1.0.1
Requires NuGet 5.9 or higher.
dotnet add package Automatron.Tasks --version 1.0.1
NuGet\Install-Package Automatron.Tasks -Version 1.0.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="Automatron.Tasks" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Automatron.Tasks" Version="1.0.1" />
<PackageReference Include="Automatron.Tasks" />
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 Automatron.Tasks --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Automatron.Tasks, 1.0.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 Automatron.Tasks@1.0.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=Automatron.Tasks&version=1.0.1
#tool nuget:?package=Automatron.Tasks&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
Quick start
- Create a .NET console app named
Sampleand add a reference to Automatron.Tasks. - Replace the contents in
Program.cswith:
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");
}
}
- Run the app. E.g.
dotnet runor F5 in Visual Studio:
Tasks can be run via cmd arguments dotnet run -- Build
Dependencies
Dependencies are expression via the attributes
- DependentOn
- DependentFor
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");
}
}
Parameters
| Product | Versions 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 was computed. 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 was computed. 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.
-
net8.0
- Automatron (>= 1.0.1)
- CommandDotNet (>= 8.1.1)
- CommandDotNet.IoC.MicrosoftDependencyInjection (>= 7.1.0)
- CommandDotNet.NameCasing (>= 5.1.0)
- CommandDotNet.Spectre (>= 4.1.0)
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 |
|---|---|---|
| 1.0.1 | 489 | 4/14/2025 |
| 1.0.1-alpha.0.1 | 217 | 4/14/2025 |
| 1.0.0 | 449 | 4/13/2025 |
| 0.0.0-alpha-11.7 | 120 | 4/11/2025 |
| 0.0.0-alpha-11.6 | 116 | 11/2/2024 |
| 0.0.0-alpha-11.5 | 126 | 10/12/2024 |
| 0.0.0-alpha-11.4 | 86 | 10/12/2024 |
| 0.0.0-alpha-11.3 | 84 | 10/6/2024 |
| 0.0.0-alpha-11.2 | 102 | 10/1/2024 |
| 0.0.0-alpha-11 | 455 | 6/2/2023 |
| 0.0.0-alpha.10 | 216 | 1/6/2023 |
| 0.0.0-alpha.9 | 190 | 1/2/2023 |
| 0.0.0-alpha.8 | 199 | 11/23/2022 |
| 0.0.0-alpha.7 | 196 | 11/21/2022 |
| 0.0.0-alpha.6 | 218 | 11/16/2022 |
| 0.0.0-alpha.4 | 224 | 11/15/2022 |
| 0.0.0-alpha.3 | 190 | 11/15/2022 |
| 0.0.0-alpha.2 | 222 | 11/11/2022 |
| 0.0.0-alpha.1 | 225 | 11/10/2022 |