Xamarin Android: Hibakeresés kikapcsolása Debug build config kivételével

Ahhoz, hogy az ADB-n keresztüli hibakaeresést kikapcsoljuk az Android alkalmazásnál, az Android projekt assemblyinfo.cs kódjába a követekzőt kell beletenni:

#if DEBUG
[assembly: Application(Debuggable=true)]
#else
[assembly: Application(Debuggable=false)]
#endif

Forrás:
https://docs.microsoft.com/en-us/xamarin/android/deploy-test/release-prep/?tabs=windows#protect-the-application

This content has 4 years. Some of the information in this post may be out of date or no longer work. Please, read this page keeping its age in your mind.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.