Skip to content

Commit 7bfcbfa

Browse files
authored
Enable Control Flow Guard for dotnet-aot project (#54171)
1 parent 0b462a7 commit 7bfcbfa

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/Cli/dotnet-aot/dotnet-aot.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323

2424
<!-- Ignore checking for OS API compatibility as we aren't targeting just the Windows platform -->
2525
<NoWarn>$(NoWarn);CA1416</NoWarn>
26+
27+
<!--
28+
Enable control flow guard
29+
https://github.com/dotnet/docs/blob/main/docs/core/deploying/native-aot/security.md#control-flow-guard
30+
-->
31+
<ControlFlowGuard>Guard</ControlFlowGuard>
2632
</PropertyGroup>
2733

2834
<ItemGroup>

0 commit comments

Comments
 (0)