mirror of
https://github.com/actions/setup-dotnet.git
synced 2024-11-22 19:41:08 +07:00
13 lines
353 B
PowerShell
13 lines
353 B
PowerShell
$dotnetPaths = @{
|
|
Linux = @("/usr/share/dotnet")
|
|
macOS = @("$env:HOME/.dotnet")
|
|
Windows = @("$env:ProgramFiles\dotnet/*",
|
|
"$env:LocalAppData\Microsoft\dotnet/*")
|
|
}
|
|
|
|
foreach ($path in $dotnetPaths[$args[0]]) {
|
|
if (Test-Path $path) {
|
|
Write-Host "Clear $path path"
|
|
Remove-Item $path -Recurse -Force
|
|
}
|
|
} |