Files
netch/clean.ps1
2021-09-29 19:29:18 +08:00

33 lines
622 B
PowerShell

Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
function Delete {
param (
[string]
$Path
)
if (Test-Path $Path) {
rm -Recurse -Force $Path | Out-Null
}
}
Delete '.vs'
Delete 'release'
Delete 'Netch\bin'
Delete 'Netch\obj'
Delete 'Tests\bin'
Delete 'Tests\obj'
Delete 'TestResults'
Delete 'Redirector\bin'
Delete 'Redirector\obj'
Delete 'RouteHelper\bin'
Delete 'RouteHelper\obj'
Delete 'Netch\*.csproj.user'
Delete 'Redirector\*.vcxproj.user'
Delete 'RouteHelper\*.vcxproj.user'
.\other\clean.ps1
Pop-Location
exit $lastExitCode