From 924f281c9624585a76b4e14489b06e05e7bee4f4 Mon Sep 17 00:00:00 2001 From: Sergei Vorobev Date: Mon, 5 Jun 2017 14:10:42 -0700 Subject: [PATCH] Fix Start-PSBuild -SMAOnly with the latest dotnet cli (#3930) --- build.psm1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.psm1 b/build.psm1 index 0df0aba513..3af82eaa86 100644 --- a/build.psm1 +++ b/build.psm1 @@ -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")) {