提交 d5d4dc61 编写于 作者: K Kirill Osenkov

Check if $insertionDir exists before getting children.

There's a combination of flags to build.ps1 that doesn't do the VSSetup related stuff, so the insertion dir doesn't exist. This is used in CI that indexes Roslyn source code. Otherwise it fails the build.
上级 f4d410e5
......@@ -334,8 +334,10 @@ function SetVisualStudioBootstrapperBuildArgs() {
Write-Host "##vso[task.setvariable variable=VisualStudio.ChannelName;]$vsChannel"
$insertionDir = Join-Path $VSSetupDir "Insertion"
if (Test-Path $insertionDir) {
$manifestList = [string]::Join(',', (Get-ChildItem "$insertionDir\*.vsman"))
Write-Host "##vso[task.setvariable variable=VisualStudio.SetupManifestList;]$manifestList"
}
}
# Core function for running our unit / integration tests tests
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册