File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,24 @@ while (-not (Test-Path $uninstallToolPath) -and ($retry -lt $maxRetries)) {
3232}
3333if ($retry -eq $maxRetries ) {
3434 Write-Error " Uninstall tool was not found after $maxRetries seconds."
35- Get-Content - Path " log.txt" | Write-Host
35+ if (Test-Path " log.txt" ) { Get-Content - Path " log.txt" | Write-Host }
36+
37+ Write-Host " Expected: $uninstallToolPath "
38+ Write-Host " extractPath: $extractPath "
39+ Write-Host " extractPath exists? $ ( Test-Path $extractPath ) "
40+
41+ Write-Host " Top-level contents of extractPath:"
42+ if (Test-Path $extractPath ) {
43+ Get-ChildItem - Path $extractPath - Force - ErrorAction SilentlyContinue |
44+ Select-Object FullName | Out-String | Write-Host
45+ }
46+
47+ Write-Host " Searching for dotnet-core-uninstall.exe under extractPath (diagnostic only):"
48+ if (Test-Path $extractPath ) {
49+ Get-ChildItem - Path $extractPath - Recurse - Filter " dotnet-core-uninstall.exe" - Force - ErrorAction SilentlyContinue |
50+ Select-Object FullName | Out-String | Write-Host
51+ }
52+
3653 exit 1
3754}
3855
You can’t perform that action at this time.
0 commit comments