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

Sheharyar Shahid 31 Reputation points
2019-12-16T16:53:48.89+00:00

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.
35,973 questions
{count} vote

Accepted answer
  1. Xiaodi Yan 876 Reputation points MVP
    2019-12-17T20:54:31.117+00:00

    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