ActionsToolkit.IO
1.0.0
dotnet add package ActionsToolkit.IO --version 1.0.0
NuGet\Install-Package ActionsToolkit.IO -Version 1.0.0
<PackageReference Include="ActionsToolkit.IO" Version="1.0.0" />
<PackageVersion Include="ActionsToolkit.IO" Version="1.0.0" />
<PackageReference Include="ActionsToolkit.IO" />
paket add ActionsToolkit.IO --version 1.0.0
#r "nuget: ActionsToolkit.IO, 1.0.0"
#:package ActionsToolkit.IO@1.0.0
#addin nuget:?package=ActionsToolkit.IO&version=1.0.0
#tool nuget:?package=ActionsToolkit.IO&version=1.0.0
ActionsToolkit.IO package
To install the ActionsToolkit.IO NuGet package:
<PackageReference Include="ActionsToolkit.IO" Version="[Version]" />
Or use the dotnet add package .NET CLI command:
dotnet add package ActionsToolkit.IO
Get the IOperations instance
To use IOperations in your .NET project, register the services with an IServiceCollection instance by calling AddGitHubActionsIO and then your consuming code can require the IOperations via constructor dependency injection.
using Microsoft.Extensions.DependencyInjection;
using ActionsToolkit.IO;
using var provider = new ServiceCollection()
.AddGitHubActionsIO()
.BuildServiceProvider();
var io = provider.GetRequiredService<IOperations>();
ActionsToolkit.IO
This was modified, but borrowed from the io/README.md.
Core functions for cli filesystem scenarios
Usage
mkdir -p
Recursively make a directory. Follows rules specified in man mkdir with the -p option specified:
io.MakeDirectory("path/to/make");
cp / mv
Copy or move files or folders. Follows rules specified in man cp and man mv:
// Recursive must be true for directories
var options = new CopyOptions(Recursive: true, Force: false);
io.Copy("path/to/directory", "path/to/dest", options);
io.Move("path/to/file", "path/to/dest");
rm -rf
Remove a file or folder recursively. Follows rules specified in man rm with the -r and -f rules specified.
io.Remove("path/to/directory");
io.Remove("path/to/file");
which
Get the path to a tool and resolves via PATH. Follows the rules specified in man which.
var pythonPath = io.Which("python");
// Use io.FileInPath("python") to get every match instead of just the first.
Attribution
This package is a .NET port of the official @actions/io Node.js package by GitHub, licensed under the MIT License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
-
net10.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.0 | 81 | 5/5/2026 |
| 1.0.0-rc.1 | 47 | 5/5/2026 |