简体   繁体   English

什么是 Mono 共享运行时?

[英]What is Mono shared runtime?

I am building an android app on Xamarin.我正在 Xamarin 上构建一个 android 应用程序。 Every time I run the app on my device for testing, it uninstalls the shared runtime and installs Mono shared runtime on the device.每次我在设备上运行应用程序进行测试时,它都会卸载共享运行时并在设备上安装 Mono 共享运行时。

I cannot find what is Mono shared runtime exactly.我找不到什么是 Mono 共享运行时。 I also want to know whether installing it on the device is harmful in any way, and how can I rollback the changes.我还想知道在设备上安装它是否有任何危害,以及如何回滚更改。

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"右键单击您的解决方案(不是项目)-> 属性-> 现在在每个项目的配置下,选择“发布”,选择“发布”将自动取消选中“使用共享运行时”

What is Mono shared runtime?什么是 Mono 共享运行时?

Refer to the document: https://docs.microsoft.com/en-us/xamarin/android/deploy-test/building-apps/build-process参考文档: 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.). shared runtime是一对额外的 Android 包,它们提供Base Class Librarymscorlib.dll等)和 Android 绑定库( Mono.Android.dll等)。 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.调试构建依赖于共享运行时而不是在 Android 应用程序包中包含基类库和绑定程序集,从而允许调试包更小。

The shared runtime may be disabled in Debug builds by setting the $(AndroidUseSharedRuntime) property to False .通过将$(AndroidUseSharedRuntime)属性设置为False可以在Debug版本中禁用shared runtime

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM