Fix Start-PSBuild -SMAOnly with the latest dotnet cli (#3930)

This commit is contained in:
Sergei Vorobev 2017-06-05 14:10:42 -07:00 committed by Dongbo Wang
parent fc75c16a30
commit 924f281c96

View file

@ -249,7 +249,11 @@ function Start-PSBuild {
$Arguments += "--configuration", $Options.Configuration
$Arguments += "--framework", $Options.Framework
$Arguments += "--runtime", $Options.Runtime
if (-not $SMAOnly) {
# libraries should not have runtime
$Arguments += "--runtime", $Options.Runtime
}
# handle Restore
if ($Restore -or -not (Test-Path "$($Options.Top)/obj/project.assets.json")) {