From 05ea8f51afbd206ba499b8bfce52f8f5b2cd2a2a Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Thu, 23 Apr 2020 10:26:32 -0700 Subject: [PATCH 1/2] Disable PublishReadyToRun for framework dependent packages --- build.psm1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.psm1 b/build.psm1 index afba567d227..f63d0d9fe68 100644 --- a/build.psm1 +++ b/build.psm1 @@ -391,6 +391,10 @@ Fix steps: $Arguments += "/property:IsWindows=false" } + if($Options.Runtime -like 'fxdependent*') { + $Arguments += "/property:PublishReadyToRun=false" + } + $Arguments += "--configuration", $Options.Configuration $Arguments += "--framework", $Options.Framework From 70e248932dfbef1eb383045f6e724824abe318cf Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Thu, 23 Apr 2020 11:05:51 -0700 Subject: [PATCH 2/2] Add comment --- build.psm1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.psm1 b/build.psm1 index f63d0d9fe68..43485ca8463 100644 --- a/build.psm1 +++ b/build.psm1 @@ -391,6 +391,9 @@ 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" }