How do you disable “Use Mono Shared Runtime” in Visual Studio 2019

MilanC 46 Reputation points
2021-04-19T16:59:32.023+00:00

Hi.
I have Microsoft Visual Studio Community 2019 installed. If I want to create an Android application in my project (Xamarin Forms), the file *.apk, Archive Manager reports an error: please see interleaved files. Specified setting " Use Shared Mono runtime " I didn't find anywhere. Thank you for your help.89194-android.pdf

89195-android.pdf

Developer technologies | .NET | Xamarin
0 comments No comments
{count} votes

Accepted answer
  1. Borisoprit 371 Reputation points
    2021-04-19T20:03:50.92+00:00

    Found this for 2019 version

    Visual Studio (Windows)
    Disable Use Shared Mono Runtime. The Shared Mono Runtime will prevent Xamarin.UITests from running in App Center for Test, and may throw a Mono dependency error during upload.
    
    In Visual Studio 2019, open the project properties, and select the Android Options tab. In the first section, look for Packaging Properties, then uncheck the Use Shared Runtime checkbox.
    
    0 comments No comments

5 additional answers

Sort by: Most helpful
  1. MilanC 46 Reputation points
    2021-04-19T19:28:55.133+00:00

    Hi.
    Yes. This is how it works in Microsoft Visual Community 2017. But in Microsoft Visual Community 2019 I only have such "Android Options", see the attachment. Of course, I tried to uncheck "Use Fast Deployment", but it has no effect, Archive Manger still reports this error.89089-android04.png

    1 person found this answer helpful.
    0 comments No comments

  2. Borisoprit 371 Reputation points
    2021-04-19T18:05:59.397+00:00

    Like this
    Go to Solution Explorer
    Right Click on your Objebnavky.Android and then select at the bottom Properties

    And then in Android Options you vind "Use Shared Mono runtime"

    Unmark it and build again.

    0 comments No comments

  3. Borisoprit 371 Reputation points
    2021-04-19T20:00:26.323+00:00

    Hi,

    uncheck "Use Fast Deployment" and put it on Release and try again

    89224-release.png

    0 comments No comments

  4. MilanC 46 Reputation points
    2021-04-19T21:54:52.12+00:00

    Thank you, you helped me a lot. It works according to your instructions. In the MS Visual Community 2017 project, it was not necessary to set Solution Configurations to Release. I didn't know it was necessary in MS Visual Community 2019. In addition, Android Options doesn't even have a Use Shared Mono Runtime option here. :-( Therefore, the error message is quite incomprehensible.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.