Invex.Tools.ArtifactClean.linux-x64 2.2.0

dotnet add package Invex.Tools.ArtifactClean.linux-x64 --version 2.2.0
                    
NuGet\Install-Package Invex.Tools.ArtifactClean.linux-x64 -Version 2.2.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.linux-x64" Version="2.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Invex.Tools.ArtifactClean.linux-x64" Version="2.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Invex.Tools.ArtifactClean.linux-x64" />
                    
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.linux-x64 --version 2.2.0
                    
#r "nuget: Invex.Tools.ArtifactClean.linux-x64, 2.2.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.linux-x64@2.2.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.linux-x64&version=2.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Invex.Tools.ArtifactClean.linux-x64&version=2.2.0
                    
Install as a Cake Tool

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.

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
2.2.0 85 8/3/2026
2.2.0-rc.3 46 8/3/2026
2.2.0-rc.2 57 7/24/2026
2.1.0 129 7/13/2026
2.1.0-rc.15 93 7/13/2026
2.1.0-rc.14 76 7/13/2026
2.1.0-rc.12 104 7/10/2026
2.1.0-rc.10 87 7/9/2026
2.1.0-rc.8 80 7/9/2026
2.1.0-rc.5 94 7/5/2026
2.1.0-rc.2 95 7/2/2026
2.0.0 252 4/11/2026
2.0.0-rc.9 202 4/11/2026
2.0.0-rc.7 187 4/11/2026
2.0.0-rc.4 202 4/11/2026