未验证 提交 1159a17a 编写于 作者: S Sam Harwell 提交者: GitHub

Merge pull request #26898 from sharwell/build-launch

Add -launch flag to the build script
......@@ -29,6 +29,7 @@ param (
[switch]$packAll = $false,
[switch]$binaryLog = $false,
[switch]$deployExtensions = $false,
[switch]$launch = $false,
[switch]$procdump = $false,
[string]$signType = "",
[switch]$skipBuildExtras = $false,
......@@ -116,6 +117,11 @@ function Process-Arguments() {
exit 1
}
if ($build -and $launch -and -not $deployExtensions) {
Write-Host -ForegroundColor Red "Cannot combine -build and -launch without -deployExtensions"
exit 1
}
$script:pack = $pack -or $packAll
$script:packAll = $packAll -or ($pack -and $official)
......@@ -246,7 +252,7 @@ function Build-Artifacts() {
Run-MSBuild "Compilers.sln" -useDotnetBuild
}
elseif ($build) {
Run-MSBuild "Roslyn.sln" "/p:DeployExtension=$deployExtensions"
Run-MSBuild "Roslyn.sln" $(if (-not $deployExtensions) {"/p:DeployExtension=false"})
if (-not $skipBuildExtras) {
Build-ExtraSignArtifacts
}
......@@ -799,6 +805,12 @@ try {
Test-XUnit
}
if ($launch) {
$devenvExe = Get-VisualStudioDir
$devenvExe = Join-Path $devenvExe 'Common7\IDE\devenv.exe'
&$devenvExe /rootSuffix RoslynDev
}
exit 0
}
catch {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册