问题
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