A Microsoft platform for building and publishing apps for Windows devices.
Hi @Raja Shanmugam ,
The <ControlFlowGuard> property in the .csproj file is designed specifically for C++ native projects, not C#.
When you build a C# UWP app using .NET Native (<UseDotNetNativeToolChain>true</UseDotNetNativeToolChain>), it uses a completely different compilation pipeline that does not read or support this MSBuild property. Therefore, adding it will have no effect.
Also, make sure you are running dumpbin on the final native binaries (found inside the generated .appx/.msix package or the ilc output folder), not the intermediate managed .dll files.
If the final native binaries still lack CFG and you have strict security requirements, I recommend opening a support ticket, as there are no documented ways to force this flag in the closed .NET Native toolchain.
If you found my response helpful or informative, I would greatly appreciate it if you could follow this guide provide feedback. Thank you.