LANCommander/Scripts/Clean.ps1

8 lines
303 B
PowerShell
Raw Normal View History

2025-09-25 19:27:45 -05:00
Get-ChildItem -Recurse -Filter *.csproj -File |
Select-Object -Expand DirectoryName -Unique |
ForEach-Object {
foreach ($d in @('bin','obj')) {
$p = Join-Path $_ $d
if (Test-Path $p) { Remove-Item $p -Recurse -Force -ErrorAction SilentlyContinue }
}
}