I have made a WPF application, I would like to have the final app be shipped as a single executable using AOT compilation so that it cannot be decompiled easily. I have tried using <PublishAot>true</PublishAot>
, but it didn't publish as an AOT project for some reason. I also couldn't find a tutorial anywhere, is it even possible? If so, can I have a step-by-step guide on how to do this?
Edit: I am using .NET framework, but I can switch to .NET core if need be. I don't really care about the limitations, I just need to know if and how it is possible to AOT publish a WPF program.