Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you disable "Use Mono Shared Runtime" in Visual Studio 2017

I'm following this guide http://www.c-sharpcorner.com/article/creating-and-distributing-android-app-using-visual-studio-2017/ to generate the APK file for my app, however when I'm archiving the project it gives me the following error:

Mono Shared runtime is enabled for 'MyApp.Android'.

The selected build configuration is using the Mono shared runtime for faster deployment. Apps cannot be archived with this setting enabled.

Please ensure that you are using a release configuration and that the "Use Mono Shared Runtime" option is your project's build options is unchecked.

How do I disable that option in Visual Studio 2017?

Thanks.

like image 971
Raul Marquez Avatar asked Feb 26 '18 06:02

Raul Marquez


3 Answers

On your project, right click, select Properties, and you will see this:

enter image description here

UPDATE: Like @Chandan Y S had said, we need to restart VS as well

like image 190
Robbit Avatar answered Oct 19 '22 14:10

Robbit


Swith to Release and then begin Archive... (work in VS 2019)

like image 37
mih Avatar answered Oct 19 '22 12:10

mih


Right click on Android solution > Select Android Options > Uncheck the option Enable developer instrumentation(debugging & profiling)

In Visual Studio Enterprise edition

like image 4
Bhauraj Biradar Avatar answered Oct 19 '22 12:10

Bhauraj Biradar