Automatron.Tasks
1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
Requires NuGet 5.9 or higher.
dotnet add package Automatron.Tasks --version 1.0.0
NuGet\Install-Package Automatron.Tasks -Version 1.0.0
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.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Automatron.Tasks" Version="1.0.0" />
<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.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Automatron.Tasks, 1.0.0"
#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.0
#: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.0
#tool nuget:?package=Automatron.Tasks&version=1.0.0
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
Sample
and add a reference to Automatron.Tasks. - Replace the contents in
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");
}
}
- Run the app. E.g.
dotnet run
or 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.0)
- 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 | 302 | 4/14/2025 |
1.0.1-alpha.0.1 | 178 | 4/14/2025 |
1.0.0 | 280 | 4/13/2025 |
0.0.0-alpha-11.7 | 100 | 4/11/2025 |
0.0.0-alpha-11.6 | 82 | 11/2/2024 |
0.0.0-alpha-11.5 | 83 | 10/12/2024 |
0.0.0-alpha-11.4 | 71 | 10/12/2024 |
0.0.0-alpha-11.3 | 66 | 10/6/2024 |
0.0.0-alpha-11.2 | 82 | 10/1/2024 |
0.0.0-alpha-11 | 264 | 6/2/2023 |
0.0.0-alpha.10 | 157 | 1/6/2023 |
0.0.0-alpha.9 | 142 | 1/2/2023 |
0.0.0-alpha.8 | 147 | 11/23/2022 |
0.0.0-alpha.7 | 140 | 11/21/2022 |
0.0.0-alpha.6 | 150 | 11/16/2022 |
0.0.0-alpha.4 | 159 | 11/15/2022 |
0.0.0-alpha.3 | 142 | 11/15/2022 |
0.0.0-alpha.2 | 146 | 11/11/2022 |
0.0.0-alpha.1 | 155 | 11/10/2022 |