vsdbg download method using the download after download manual installation tool

vsdbg domestic downloaded too slow, here after using a download tool download, processing method manually installed

View vs build console output:

1>C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NonInteractive -NoProfile -WindowStyle Hidden -ExecutionPolicy RemoteSigned -File "C:\Users\xx\AppData\Local\Temp\GetVsDbg.ps1" -Version vs2017u5 -RuntimeID linux-x64 -InstallPath "C:\Users\xx\vsdbg\vs2017u5"

Modify C: \ Users \ xx \ AppData \ Local \ Temp \ GetVsDbg.ps1, comments download, echo the download url

if (IsLatest $InstallPath $RuntimeID $VersionNumber) {
    Write-Host "Info: Latest version of VsDbg is present. Skipping downloads"
} else {
    if (Test-Path $InstallPath) {
        Write-Host "Info: $InstallPath exists, deleting."
        Remove-Item $InstallPath -Force -Recurse -ErrorAction Stop
    }
 
    $target = ("vsdbg-" + $VersionNumber).Replace('.','-') + "/vsdbg-" + $RuntimeID + ".zip"
    $url = "https://vsdebugger.azureedge.net/" + $target
    echo $url
    # DownloadAndExtract $url $InstallPath
    # WriteSuccessInfo $InstallPath $RuntimeID $VersionNumber
    # Write-Host "Info: Successfully installed vsdbg at '$InstallPath'"
}

Open Powershell, switch to the C: \ Users \ xx \ AppData \ Local \ Temp directory, execute

./GetVsDbg.ps1 -Version vs2017u5 -RuntimeID linux-x64 -InstallPath "C:\Users\xx\vsdbg\vs2017u5"       

# 输出:
Info: Using vsdbg version '16.2.10709.2'
Info: Using Runtime ID 'linux-x64'
https://vsdebugger.azureedge.net/vsdbg-16-2-10709-2/vsdbg-linux-x64.zip

If you encounter a problem execute permissions can be set to RemoteSigned

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

Copy https://vsdebugger.azureedge.net/vsdbg-16-2-10709-2/vsdbg-linux-x64.zip to download tools to download, and then extract it to C: \ Users \ xx \ vsdbg \ vs2017u5
After modifying GetVsDbg .ps1, cancel delete directories detection, information is written successfully installed

if (IsLatest $InstallPath $RuntimeID $VersionNumber) {
    Write-Host "Info: Latest version of VsDbg is present. Skipping downloads"
} else {
    # if (Test-Path $InstallPath) {
        # Write-Host "Info: $InstallPath exists, deleting."
        # Remove-Item $InstallPath -Force -Recurse -ErrorAction Stop
    # }
 
    $target = ("vsdbg-" + $VersionNumber).Replace('.','-') + "/vsdbg-" + $RuntimeID + ".zip"
    $url = "https://vsdebugger.azureedge.net/" + $target
    # echo $url
    # DownloadAndExtract $url $InstallPath
    WriteSuccessInfo $InstallPath $RuntimeID $VersionNumber
    Write-Host "Info: Successfully installed vsdbg at '$InstallPath'"
}

do it again

./GetVsDbg.ps1 -Version vs2017u5 -RuntimeID linux-x64 -InstallPath "C:\Users\xx\vsdbg\vs2017u5"       

Similarly install linux-musl-x64 version, the installation is complete, the proposed reduction GetVsDbg.ps1 script

Guess you like

Origin www.cnblogs.com/wswind/p/11237367.html