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

查看:34
本文介绍了什么是 Mono 共享运行时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 Xamarin 上构建一个 android 应用程序.每次我在设备上运行该应用进行测试时,它都会卸载共享运行时并在设备上安装 Mono 共享运行时.

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.

我无法准确找到什么是 Mono 共享运行时.我还想知道在设备上安装它是否有任何危害,以及如何回滚更改.

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.

推荐答案

什么是 Mono 共享运行时?

What is Mono shared runtime?

参考文档:https://docs.microsoft.com/en-us/xamarin/android/deploy-test/building-apps/build-process

shared runtime 是一对额外的 Android 包,它们提供了 Base Class Library(mscorlib.dll 等)和Android 绑定库(Mono.Android.dll 等).调试构建依赖于共享运行时,而不是在 Android 应用程序包中包含基类库和绑定程序集,从而允许调试包更小.

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.

可以通过将 $(AndroidUseSharedRuntime) 属性设置为 FalseDebug 构建中禁用 shared runtime.

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

这篇关于什么是 Mono 共享运行时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆