Invex.Tools.ArtifactClean.win-arm64 3.0.0

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Invex.Tools.ArtifactClean.win-arm64 --version 3.0.0
                    
NuGet\Install-Package Invex.Tools.ArtifactClean.win-arm64 -Version 3.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="Invex.Tools.ArtifactClean.win-arm64" Version="3.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Invex.Tools.ArtifactClean.win-arm64" Version="3.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Invex.Tools.ArtifactClean.win-arm64" />
                    
Project file
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 Invex.Tools.ArtifactClean.win-arm64 --version 3.0.0
                    
#r "nuget: Invex.Tools.ArtifactClean.win-arm64, 3.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 Invex.Tools.ArtifactClean.win-arm64@3.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=Invex.Tools.ArtifactClean.win-arm64&version=3.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Invex.Tools.ArtifactClean.win-arm64&version=3.0.0
                    
Install as a Cake Tool

Invex .NET Tools

Build NuGet License: MIT .NET

A collection of small, focused .NET developer tools. The repository currently ships ArtifactClean, the artclean .NET global tool, which resets a .NET workspace to a clean state in one command: dotnet clean, delete every bin and obj directory, then dotnet restore.

Features

  • One-step reset. Runs dotnet clean, removes bin and obj directories recursively, and runs dotnet restore.
  • Safe traversal. Skips symbolic links, junctions and other reparse points, and skips directories it cannot read.
  • Script-friendly. Exits with 0 on success and 1 on any failure, while still finishing the remaining steps.
  • Quiet by default. Prints a short summary; --verbose shows each deleted directory and the dotnet output.
  • Fast startup. Published packages include Native AOT assets for Windows, Linux and macOS on x64 and ARM64.

Installation

Install the latest published version as a global tool:

dotnet tool install --global Invex.Tools.ArtifactClean

Update an existing installation:

dotnet tool update --global Invex.Tools.ArtifactClean

The tool targets .NET 10 and needs the dotnet command on PATH. The workspaces it cleans can target any .NET version.

Quick start

From the root of the workspace you want to clean:

artclean
'dotnet clean' completed successfully.
Deleted 12 'bin' / 'obj' directories.
'dotnet restore' completed successfully.

ArtifactClean permanently deletes every bin and obj directory below the selected path. Select the root path carefully.

Usage

Clean a different directory

artclean --path "path/to/workspace"

dotnet clean and dotnet restore run with the selected directory as their working directory. See ArtifactClean.

Skip the restore or see more detail

artclean --no-restore
artclean --verbose

The complete command syntax is:

artclean [options]
  -p, --path <directory>  Root directory to clean (default: current directory)
  -n, --no-restore        Do not run dotnet restore after cleaning
  -v, --verbose           Show detailed cleanup and dotnet command output

See ArtifactClean options.

Use it in scripts

The tool exits with code 1 when the path does not exist, dotnet clean or dotnet restore fails, or a bin or obj directory cannot be deleted. A failed dotnet clean does not stop the cleanup. See Exit codes.

Documentation

Full documentation: https://invex-games.github.io/tools/

Guide Contents
Introduction What the tools are for, when to use ArtifactClean and when not to
Getting Started Install artclean and run your first cleanup
ArtifactClean Command reference: options, behavior, exit codes, platforms

Development

The repository requires the .NET 10 SDK (see global.json).

dotnet build Invex.Tools.slnx
dotnet test Invex.Tools.slnx

Do not run artclean from the repository root while developing: it deletes the build output you are testing.

Preview the documentation site with the Atom build definition:

atom BuildDocs
atom ServeDocs
# equivalently
dotnet run --project _atom/_atom.csproj -- ServeDocs

Repository layout

Path Purpose
src/Invex.Tools.ArtifactClean Source for the artclean tool
tests/Invex.Tools.ArtifactClean.Tests NUnit tests for the cleanup logic
_atom Atom build definition used to generate CI and release workflows
docs DocFX source for the project documentation
Invex.Tools.slnx Repository solution

License

This project is available under the MIT License.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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
3.1.0-rc.2 34 10/16/2026
3.0.0 66 10/15/2026
3.0.0-rc.30 46 10/15/2026
3.0.0-rc.28 46 10/14/2026
3.0.0-rc.26 48 10/13/2026
3.0.0-rc.20 42 10/13/2026
2.3.0-rc.10 40 10/13/2026
2.3.0-rc.8 49 10/9/2026
2.3.0-rc.6 117 8/28/2026
2.3.0-rc.4 120 8/21/2026
2.3.0-rc.2 133 8/14/2026
2.2.0 196 8/3/2026
2.2.0-rc.3 149 8/3/2026
2.2.0-rc.2 150 7/24/2026
2.1.0 216 7/13/2026
2.1.0-rc.15 178 7/13/2026
2.1.0-rc.14 171 7/13/2026
2.1.0-rc.12 204 7/10/2026
2.1.0-rc.10 185 7/9/2026
2.1.0-rc.8 174 7/9/2026
Loading failed