2021-02-04 12:14:09 +00:00
|
|
|
$dotnetPaths = @{
|
|
|
|
Linux = @("/usr/share/dotnet")
|
|
|
|
macOS = @("$env:HOME/.dotnet")
|
|
|
|
Windows = @("$env:ProgramFiles\dotnet/*",
|
|
|
|
"$env:LocalAppData\Microsoft\dotnet/*")
|
2021-02-03 12:13:32 +00:00
|
|
|
}
|
|
|
|
|
2021-02-04 12:14:09 +00:00
|
|
|
foreach ($path in $dotnetPaths[$args[0]]) {
|
2021-02-03 12:13:32 +00:00
|
|
|
if (Test-Path $path) {
|
2021-02-03 12:20:22 +00:00
|
|
|
Write-Host "Clear $path path"
|
2021-02-03 14:46:39 +00:00
|
|
|
Remove-Item $path -Recurse -Force
|
2021-02-03 12:13:32 +00:00
|
|
|
}
|
2021-02-04 11:24:06 +00:00
|
|
|
}
|