From 16ec1cc32f9e60c9d76b074c865c32a5d2acf5a2 Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Fri, 24 Apr 2020 10:47:34 -0700 Subject: [PATCH] Disable `PublishReadyToRun` for framework dependent packages (#12450) --- build.psm1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.psm1 b/build.psm1 index afba567d22..43485ca846 100644 --- a/build.psm1 +++ b/build.psm1 @@ -391,6 +391,13 @@ Fix steps: $Arguments += "/property:IsWindows=false" } + # Framework Dependent builds do not support ReadyToRun as it needs a specific runtime to optimize for. + # The property is set in Powershell.Common.props file. + # We override the property through the build command line. + if($Options.Runtime -like 'fxdependent*') { + $Arguments += "/property:PublishReadyToRun=false" + } + $Arguments += "--configuration", $Options.Configuration $Arguments += "--framework", $Options.Framework