Invex.Tools.ArtifactClean 2.3.0-rc.6

This is a prerelease version of Invex.Tools.ArtifactClean.
dotnet tool install --global Invex.Tools.ArtifactClean --version 2.3.0-rc.6
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Invex.Tools.ArtifactClean --version 2.3.0-rc.6
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Invex.Tools.ArtifactClean&version=2.3.0-rc.6&prerelease
                    
nuke :add-package Invex.Tools.ArtifactClean --version 2.3.0-rc.6
                    

Invex .NET Tools

A collection of small, focused .NET developer tools. The repository currently ships ArtifactClean, exposed as the artclean .NET global tool.

ArtifactClean

artclean cleans a .NET workspace by:

  1. Running dotnet clean in the selected directory.
  2. Recursively deleting directories named bin and obj.
  3. Running dotnet restore unless restoration is disabled.

It skips symbolic links, junctions, and other reparse points while traversing the directory tree. Inaccessible directories are skipped, while failures to delete a matching directory are reported. Deletion is permanent, so select the root path carefully.

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

Usage

Clean the current directory:

artclean

Clean a specific workspace:

artclean --path "path/to/workspace"

Show each deleted directory and the output from the dotnet commands:

artclean --verbose

Skip the restore step after cleaning:

artclean --no-restore

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

dotnet clean and dotnet restore are run with the selected directory as their working directory. The tool requires the dotnet command to be available on PATH.

Supported platforms

The tool targets .NET 8 and .NET 10. Published .NET 10 packages include Native AOT assets for:

  • Windows x64 and ARM64
  • Linux x64 and ARM64
  • macOS x64 and ARM64

Repository layout

Path Purpose
src/Invex.Tools.ArtifactClean Source for the artclean tool
_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.

Product 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.

This package has no dependencies.

Version Downloads Last Updated
2.3.0-rc.6 65 8/28/2026
2.3.0-rc.4 66 8/21/2026
2.3.0-rc.2 75 8/14/2026
2.2.0 113 8/3/2026
2.2.0-rc.3 65 8/3/2026
2.2.0-rc.2 66 7/24/2026
2.1.0 114 7/13/2026
2.1.0-rc.15 69 7/13/2026
2.1.0-rc.14 64 7/13/2026
2.1.0-rc.12 97 7/10/2026
2.1.0-rc.10 74 7/9/2026
2.1.0-rc.8 67 7/9/2026
2.1.0-rc.5 73 7/5/2026
2.1.0-rc.2 77 7/2/2026
2.0.0 128 4/11/2026
2.0.0-rc.9 67 4/11/2026
2.0.0-rc.7 77 4/11/2026
2.0.0-rc.4 78 4/11/2026