mirror of
				https://github.com/actions/setup-dotnet.git
				synced 2025-11-04 01:33:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			432 B
		
	
	
	
		
			PowerShell
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			432 B
		
	
	
	
		
			PowerShell
		
	
	
	
	
	
$dotnetPaths = @{
 | 
						|
    Linux = "/usr/share/dotnet"
 | 
						|
    macOS = "$env:HOME/.dotnet"
 | 
						|
    Windows = "$env:ProgramFiles\dotnet", "$env:LocalAppData\Microsoft\dotnet"
 | 
						|
}
 | 
						|
 | 
						|
foreach ($srcPath in $dotnetPaths[$args[0]]) {
 | 
						|
    if (Test-Path $srcPath) {
 | 
						|
        Write-Host "Move $srcPath path"
 | 
						|
        $dstPath = Join-Path ([IO.Path]::GetTempPath()) ([IO.Path]::GetRandomFileName())
 | 
						|
        Move-Item -Path $srcPath -Destination $dstPath
 | 
						|
    }
 | 
						|
} |