Skip to content

Commit

Permalink
Updated test script for msvc-2019 image.
Browse files Browse the repository at this point in the history
  • Loading branch information
mabrarov committed Dec 28, 2020
1 parent d5dbeb1 commit aa3fa28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/msvc-2019/scripts/test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $project_dir = (Get-Item "${PSScriptRoot}").Parent.FullName
$image_repository = "${env:DOCKER_USER}/$(Split-Path "${project_dir}" -Leaf)"

Write-Host "Get folder where MS Visual Studio 2019 is installed in container created from ${image_repository}:latest image"
docker run --rm "${image_repository}:latest" vswhere -latest -products Microsoft.VisualStudio.Product.Community -version '[15.0,16.0)' -property installationPath
docker run --rm "${image_repository}:latest" vswhere -latest -products Microsoft.VisualStudio.Product.Community -version '[16.0,17.0)' -property installationPath
if (${LastExitCode} -ne 0) {
throw "Failed to get folder where MS Visual Studio 2019 is installed"
}

0 comments on commit aa3fa28

Please sign in to comment.