UWP C# button control not working/freezes on release mode

Sheharyar Shahid 31 Reputation points

I am using a 3rd party button control from the NuGet package. It works fine on debug mode but when I change it to release mode and run the app, the button control is like frozen or disabled. It didn't perform or trigger the function given in its click handler. Can anyone suggest a solution? Thanks :)

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,952 questions
{count} vote

Accepted answer
  1. Xiaodi Yan 876 Reputation points MVP

    I'm guessing it might be caused by the Native .NET toolchain in release mode. I have met it several years ago. Just found this issue on its GitHub: https://github.com/robinmanuelthiel/flexbutton/issues/64
    You could follow this post to add a piece of code or just disable the Native .NET tool chain for release mode. You can find this checkbox in Properties - Build page, then select your platform target and disable "compile with .NET Native tool chain".

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful