提交 669e25fe 编写于 作者: S Sam Harwell

Enable preview SDKs for CI builds

上级 58b168dd
......@@ -427,6 +427,22 @@ function TestUsingOptimizedRunner() {
}
}
function EnablePreviewSdks() {
$vsInfo = LocateVisualStudio
if ($vsInfo -eq $null) {
# Preview SDKs are allowed when no Visual Studio instance is installed
return
}
$vsId = $vsInfo.instanceId
$vsMajorVersion = $vsInfo.installationVersion.Split('.')[0]
$instanceDir = Join-Path ${env:USERPROFILE} "AppData\Local\Microsoft\VisualStudio\$vsMajorVersion.0_$vsId"
Create-Directory $instanceDir
$sdkFile = Join-Path $instanceDir "sdk.txt"
'UsePreviews=True' | Set-Content $sdkFile
}
# Deploy our core VSIX libraries to Visual Studio via the Roslyn VSIX tool. This is an alternative to
# deploying at build time.
function Deploy-VsixViaTool() {
......@@ -581,6 +597,7 @@ try {
if ($ci) {
List-Processes
Prepare-TempDir
EnablePreviewSdks
if ($testVsi) {
Setup-IntegrationTestRun
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册