Skip to content

Commit

Permalink
fix: Enable AllowUnsafeBlocks for winappsdk
Browse files Browse the repository at this point in the history
This is required for Native AOT code generators starting from net9
  • Loading branch information
jeromelaban authored Oct 9, 2024
1 parent 09d5d7c commit 9e244aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Uno.Sdk/targets/Uno.Common.WinAppSdk.targets
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
<RuntimeIdentifiers Condition="'$(RuntimeIdentifiers)'==''">win-x86;win-x64;win-arm64</RuntimeIdentifiers>

<IsMSALSupported>true</IsMSALSupported>

<!-- net9 requires the use of unsafe blocks -->
<AllowUnsafeBlocks Condition=" '$(AllowUnsafeBlocks)' == '' ">true</AllowUnsafeBlocks>
</PropertyGroup>

<PropertyGroup Condition=" $(_IsExecutable) == 'true' ">
Expand Down

0 comments on commit 9e244aa

Please sign in to comment.