Skip to content

Commit

Permalink
Enabled AoT for WinAppSdk 1.6-experimental1. Added RuntimeIdentifier …
Browse files Browse the repository at this point in the history
…to head, removed redundant RuntimeIdentifiers definition on libraries.
  • Loading branch information
Arlodotexe committed Jun 20, 2024
1 parent 9e54bb0 commit 9349c6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MultiTarget/WinUI.Extra.props
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

<RuntimeIdentifiers Condition="$([MSBuild]::GetTargetFrameworkVersion('$(TargetFramework)')) >= 8">win-x86;win-x64;win-arm64</RuntimeIdentifiers>
<RuntimeIdentifiers Condition="8 > $([MSBuild]::GetTargetFrameworkVersion('$(TargetFramework)'))">win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
<WindowsSdkPackageVersion>10.0.22621.35-preview</WindowsSdkPackageVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(IsUno)' == 'true'">
Expand Down
5 changes: 3 additions & 2 deletions ProjectHeads/Head.WinAppSdk.props
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
<Import Project="$(MSBuildThisFileDirectory)\..\MultiTarget\WinUI.Extra.props" />

<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<!-- Set to true when WinAppSdk releases AoT support in 1.6+ -->
<PublishAot>false</PublishAot>
<PublishAot>true</PublishAot>
<RuntimeIdentifier Condition="$([MSBuild]::GetTargetFrameworkVersion('$(TargetFramework)')) >= 8">win-$(Platform)</RuntimeIdentifier>
<RuntimeIdentifier Condition="8 > $([MSBuild]::GetTargetFrameworkVersion('$(TargetFramework)'))">win10-$(Platform)</RuntimeIdentifier>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 9349c6c

Please sign in to comment.