Disable PublishReadyToRun for framework dependent packages (#12450)

This commit is contained in:
Aditya Patwardhan 2020-04-24 10:47:34 -07:00 committed by GitHub
parent c27ae52bae
commit 16ec1cc32f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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