Disable PublishReadyToRun
for framework dependent packages (#12450)
This commit is contained in:
parent
c27ae52bae
commit
16ec1cc32f
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue