dotnet-purge
0.0.8
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global dotnet-purge --version 0.0.8
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local dotnet-purge --version 0.0.8
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dotnet-purge&version=0.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package dotnet-purge --version 0.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
dotnet-purge
.NET tool that runs dotnet clean for each target framework and configuration and then deletes the output directories.
Can be run in a directory containing a solution or project file.
Installation
dotnet tool install -g dotnet-purge
Usage
dotnet-purge [<TARGETDIR>] [options]
Arguments
| Name | Description |
|---|---|
| <TARGETDIR> | The directory that contains the solution or project file to purge. If not specified, the current directory will be used. |
Options
| Name | Description |
|---|---|
| -?, -h, --help | Show help and usage information |
| --version | Show version information |
| -r, --recurse | Find projects in sub-directories and purge those too. |
| -n, --no-clean | Don't run dotnet clean before deleting the output directories. |
Examples
Purge the solution/project in the current directory:
~/src/MyProject
$ dotnet purge
Running '/home/damian/src/MyProject/dotnet clean --configuration Debug --framework net8.0'... done!
Running '/home/damian/src/MyProject/dotnet clean --configuration Debug --framework net9.0'... done!
Running '/home/damian/src/MyProject/dotnet clean --configuration Release --framework net8.0'... done!
Running '/home/damian/src/MyProject/dotnet clean --configuration Release --framework net9.0'... done!
Deleted '/home/damian/src/MyProject/obj/'
Deleted '/home/damian/src/MyProject/bin/Debug'
Deleted '/home/damian/src/MyProject/bin/'
Purge the solution/project in the specified directory:
~/src
$ dotnet purge ./MyProject
Running '/home/damian/src/MyProject/dotnet clean --configuration Debug --framework net8.0'... done!
Running '/home/damian/src/MyProject/dotnet clean --configuration Debug --framework net9.0'... done!
Running '/home/damian/src/MyProject/dotnet clean --configuration Release --framework net8.0'... done!
Running '/home/damian/src/MyProject/dotnet clean --configuration Release --framework net9.0'... done!
Deleted '/home/damian/src/MyProject/obj/'
Deleted '/home/damian/src/MyProject/bin/Debug'
Deleted '/home/damian/src/MyProject/bin/'
Add to Windows Explorer
Use context-menu.reg to add dotnet-purge to the Windows Explorer context menu.
context-menu.reg contents:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Shell]
@="none"
[HKEY_CLASSES_ROOT\Directory\shell\dotnet-purge]
"MUIVerb"="run dotnet-purge"
"Position"="bottom"
[HKEY_CLASSES_ROOT\Directory\Background\shell\dotnet-purge]
"MUIVerb"="run dotnet-purge"
"Position"="bottom"
[HKEY_CLASSES_ROOT\Directory\shell\dotnet-purge\command]
@="cmd.exe /c cd \"%V\" & dotnet-purge"
[HKEY_CLASSES_ROOT\Directory\Background\shell\dotnet-purge\command]
@="cmd.exe /c cd \"%V\" & dotnet-purge"
| 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.
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.14 | 675 | 9/23/2026 |
| 0.0.13 | 2,718 | 1/5/2026 |
| 0.0.12 | 3,269 | 3/17/2025 |
| 0.0.11 | 354 | 3/10/2025 |
| 0.0.10 | 372 | 3/9/2025 |
| 0.0.9 | 318 | 3/9/2025 |
| 0.0.8 | 274 | 3/9/2025 |
| 0.0.7 | 272 | 3/9/2025 |
| 0.0.6 | 266 | 3/9/2025 |
| 0.0.5 | 249 | 3/9/2025 |
| 0.0.4 | 396 | 3/6/2025 |
| 0.0.3 | 332 | 3/6/2025 |
| 0.0.3-pre | 303 | 3/6/2025 |
| 0.0.2-pre | 337 | 3/6/2025 |
| 0.0.1-pre | 314 | 3/5/2025 |