Skip to content

Commit

Permalink
Always enable NativeAOT
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Jul 28, 2023
1 parent 771ed52 commit 82608e7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
</PropertyGroup>

<!-- Same optional NativeAOT property group as in ComputeSharp.SwapChain.Cli -->
<PropertyGroup Condition="'$(COMPUTESHARP_SWAPCHAIN_D2D1_PUBLISH_AOT)' == 'true'">
<PropertyGroup>
<PublishAot>true</PublishAot>
<UseSystemResourceKeys>true</UseSystemResourceKeys>
<InvariantGlobalization>true</InvariantGlobalization>
<IlcOptimizationPreference>Speed</IlcOptimizationPreference>
</PropertyGroup>

<!-- Also include the .rd.xml file to fix some NativeAOT issues with CsWinRT -->
<ItemGroup Condition="'$(COMPUTESHARP_SWAPCHAIN_D2D1_PUBLISH_AOT)' == 'true'">
<ItemGroup>
<RdXmlFile Include="Properties\Default.rd.xml" />
</ItemGroup>

Expand Down

0 comments on commit 82608e7

Please sign in to comment.