Skip to content

Commit

Permalink
Set PublishTrimmed in NativeAOT targets
Browse files Browse the repository at this point in the history
Looks like this is still needed. Fixes dotnet#87303.
  • Loading branch information
MichalStrehovsky committed Jun 9, 2023
1 parent 9bcf523 commit 892e93f
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -25,6 +25,7 @@ The .NET Foundation licenses this file to you under the MIT license.
<NativeDebugSymbols Condition="$(DebugSymbols) == 'true' or ($(DebugType) != 'none' and $(DebugType) != '')">true</NativeDebugSymbols>
<!-- Workaround for https://github.com/dotnet/runtimelab/issues/771 -->
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
<PublishTrimmed Condition="'$(PublishTrimmed)' == ''">true</PublishTrimmed>
<IlcPgoOptimize Condition="'$(IlcPgoOptimize)' == '' and '$(OptimizationPreference)' == 'Speed'">true</IlcPgoOptimize>
<RunILLink>false</RunILLink>
<_IsiOSLikePlatform Condition="'$(_targetOS)' == 'maccatalyst' or $(_targetOS.StartsWith('ios')) or $(_targetOS.StartsWith('tvos'))">true</_IsiOSLikePlatform>
Expand Down

0 comments on commit 892e93f

Please sign in to comment.