What is Mono shared runtime?

戏子无情 提交于 2021-02-08 11:44:15

问题


I am building an android app on Xamarin. Every time I run the app on my device for testing, it uninstalls the shared runtime and installs Mono shared runtime on the device.

I cannot find what is Mono shared runtime exactly. I also want to know whether installing it on the device is harmful in any way, and how can I rollback the changes.


回答1:


What is Mono shared runtime?

Refer to the document: https://docs.microsoft.com/en-us/xamarin/android/deploy-test/building-apps/build-process

The shared runtime is a pair of additional Android packages which provide the Base Class Library (mscorlib.dll, etc.) and the Android binding library (Mono.Android.dll, etc.). Debug builds rely upon the shared runtime in lieu of including the Base Class Library and Binding assemblies within the Android application package, allowing the Debug package to be smaller.

The shared runtime may be disabled in Debug builds by setting the $(AndroidUseSharedRuntime) property to False.




回答2:


Change it from the configuration manager

Right Click on your SOLUTION(not project) -> Properties -> Now under configuration for each project, select "Release" selecting Release will automatically uncheck "Use Shared Runtime"



来源:https://stackoverflow.com/questions/53014499/what-is-mono-shared-runtime

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!