mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix build to only enable ready-to-run for the Release configuration (#26290)
This commit is contained in:
@@ -193,12 +193,20 @@
|
||||
<PropertyGroup Condition=" '$(AppDeployment)' == 'FxDependentDeployment' ">
|
||||
<!-- If we specify Environment too, it searches that first, no matter what order we specify-->
|
||||
<AppHostDotNetSearch>Global</AppHostDotNetSearch>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Enable ready-to-run only for Release configuration -->
|
||||
<PropertyGroup Condition=" '$(AppDeployment)' == 'FxDependentDeployment' And '$(Configuration)' == 'Release' ">
|
||||
<PublishReadyToRun>true</PublishReadyToRun>
|
||||
<PublishReadyToRunEmitSymbols>true</PublishReadyToRunEmitSymbols>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(AppDeployment)' == 'SelfContained' ">
|
||||
<AppHostDotNetSearch>AppLocal</AppHostDotNetSearch>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Enable ready-to-run only for Release configuration -->
|
||||
<PropertyGroup Condition=" '$(AppDeployment)' == 'SelfContained' And '$(Configuration)' == 'Release' ">
|
||||
<PublishReadyToRun>true</PublishReadyToRun>
|
||||
<PublishReadyToRunEmitSymbols>true</PublishReadyToRunEmitSymbols>
|
||||
</PropertyGroup>
|
||||
|
||||
Reference in New Issue
Block a user