Skip to content

Commit 45c1ae6

Browse files
committed
Enable aot on net8
1 parent 369d9a1 commit 45c1ae6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

ProjectHeads/Head.WinAppSdk.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
<Import Project="$(MSBuildThisFileDirectory)\..\MultiTarget\PackageReferences\WinAppSdk.props" />
1515
<Import Project="$(MSBuildThisFileDirectory)\..\MultiTarget\WinUI.Extra.props" />
1616

17+
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
18+
<PublishAot>true</PublishAot>
19+
</PropertyGroup>
20+
1721
<ItemGroup>
1822
<Manifest Include="$(ApplicationManifest)" />
1923
</ItemGroup>

ToolkitComponent.SourceProject.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515

1616
<Sdk Condition="'$(IsUwp)' == 'true'" Name="MSBuild.Sdk.Extras" Version="3.0.23" />
1717

18+
<PropertyGroup>
19+
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">true</IsAotCompatible>
20+
</PropertyGroup>
21+
1822
<!-- Auto Generate our own Assembly Info -->
1923
<PropertyGroup>
2024
<!-- Turn-off .NET based AssemblyInfo.cs generator, see below -->

0 commit comments

Comments
 (0)