DotnetPurge 1.0.0
dotnet tool install --global DotnetPurge --version 1.0.0
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 DotnetPurge --version 1.0.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=DotnetPurge&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package DotnetPurge --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Dotnet Purge
dotnet purge is a command-line tool designed to clean up bin and obj folders within C# solution or project directories. It ensures that your build artifacts are removed, ensuring a clean rebuild.
Usage
Installation:
- Make sure you have the .NET SDK installed.
- Install globally using
dotnet tool install --global DotnetPurge
Run the Tool:
- Open a terminal or command prompt.
- Navigate to your C# solution or project directory.
- Execute the following command:
dotnet purge
Behavior:
- The tool will search for bin and obj folders recursively within the current directory and its subdirectories.
- If found, it will delete these folders.
- If no such folders are found, it will display a message indicating that no cleanup is necessary.
- For safety the tool can only run inside a solution or project (sub)directory.
- If the tool is run outside a solution or project (sub)directory it will display an error message
Uninstall
- Uninstall globally using
dotnet tool uninstall --global DotnetPurge
- Uninstall globally using
Example Output
Found 2 directories
Removed Directory
C:\MyProject\bin\Debug
C:\MyProject\obj\Debug
Removed 2 directories
Supported Platforms
This tool is built using .Net Core and is fully cross-platform. Happy cleaning! ๐งน๐
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. |
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 |
---|---|---|
1.0.0 | 253 | 2/10/2024 |