将 .NET Standard 类库转换为原生 aar/jar [英] Convert .NET Standard class library to native aar/jar

查看:30
本文介绍了将 .NET Standard 类库转换为原生 aar/jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我们正在开发一个可供不同 Xamarin.* 平台使用的 .NET Standard 类库.

Currently, we are developing a .NET Standard class library that will be used by different Xamarin.* platforms.

我想知道是否有办法在原生 Android 项目中使用共享代码(可能生成 AAR/JAR 文件).

I was wondering if there is a way to use the shared code in a native Android project (maybe produce an AAR/JAR file).

我需要此功能的原因是我们公司为我们的一位客户提供了一个 AAR(由原生 Android 项目使用),我们希望保留一个源代码库,而不是两个.

The reason I need this functionality is because our company provides an AAR to one of our customers (that is used by a native Android project), and we would like to keep a single source base instead of two.

提前致谢!

推荐答案

更新:

名称更改为.NET 嵌入";并且在本次更新时为 v0.4.

Update:

The name changed to ".NET Embedding" and it is at v0.4 at the time of this update.

你可以使用 Mono 的 Embeddinator-4000

You can use Mono's Embeddinator-4000

它支持各种语言使用者,因此它将 .NET 代码显示为目标语言中的惯用代码.这是目前支持的语言列表:

It supports various language consumers, so it surfaces .NET code as idiomatic code in the target language. This is the list of supported languages at present:

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