Skip to content

Commit

Permalink
Install Visual Studio Build Tools
Browse files Browse the repository at this point in the history
  • Loading branch information
semalaiappan committed Feb 19, 2024
1 parent 46dac13 commit acf7270
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ jobs:
$url = "https://aka.ms/vs/2019/release/vs_buildtools.exe"
$output = "vs_buildtools.exe"
Invoke-WebRequest -Uri $url -OutFile $output
$expectedSize = (Invoke-WebRequest -Uri $url -Method Head).Headers.'Content-Length'
$actualSize = (Get-Item $output).length
if ($actualSize -ne $expectedSize) {
Write-Host "Download incomplete. Expected size: $expectedSize bytes, Actual size: $actualSize bytes"
exit 1
}
$installArgs = "--quiet --wait --norestart"
Start-Process -FilePath $output -ArgumentList $installArgs -Wait
Expand Down

0 comments on commit acf7270

Please sign in to comment.