Created
November 30, 2018 20:23
-
-
Save zaqmor/188018df73328ca4ebf4e93d3d638402 to your computer and use it in GitHub Desktop.
PowerShell: Delete C# project output directories
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get-childitem -recurse -inc "*.csproj" | select-object -expandproperty Directory | select-object -ExpandProperty FullName | get-childitem -recurse -inc bin,obj | ?{$_.PSIsContainer} | select-object -ExpandProperty FullName | remove-item -recurse -force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment