Search code examples
androidxamarinvisual-studio-mac

Visual Studio Mac - Android Build - Enable Developer Instrumentation cannot be disabled


I'm on a Mac (Catalina OS) running Visual Studio for Mac Community (version 8.5 build 3183). I've created a Xamarin solution targeting both Android and iOS.

For my Android Build options, for the Release configuration, I want to uncheck the "Enable Developer Instrumentation (debugging and profiling)" checkbox. However, the box is checked and disabled. What am I missing? It's my understanding that for a Release build I want that box unchecked.

Thanks.

Disabled Checkbox


Solution

  • Found it! Opened "Project Options" for the Android Application. Pick the "Release" configuration. Go to Build | Compiler options. Set the Debug Information's drop-down to "None" Go to Build | Android Build and you will see that the "Enable Developer Instrumentation" checkbox is now unchecked.

    Set Debug to "None" Set Debug to "None"

    Enable Developer Instrumentation checkbox is cleared enter image description here