如何在xamarin Android上使用netstandard 2.1? [英] How to use netstandard 2.1 with xamarin Android?

查看:110
本文介绍了如何在xamarin Android上使用netstandard 2.1?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行Visual Studio 2019预览版,并且已安装Android预览版sdk(9.0.99) 但是,当我尝试使用设置为netstandard 2.1的库来构建xamarin表单项目时.我仍然遇到与monodroid的兼容性错误. 我想念什么?我一直在搜索很多东西,发现我相信有关Mono 2019-06的一些信息,但是没有有关如何获取它的信息.

I am running Visual Studio 2019 preview and I have the Android preview sdk installed (9.0.99) But when I try to build a xamarin forms project with a library set to netstandard 2.1. I still het a compatibiliteit error with monodroid. What am I missing? Been searching quite a bit and found something about a mono 2019-06 I believe, but no info on how to get it.

推荐答案

版本10 :

This github document shows that Xamarin Android support NS2.1 since version 10:

因此,如果您至少使用Visual Studio 16.3,则可以在Xamarin Android应用程序中使用.Net Standard 2.1.

So if you use at least Visual Studio 16.3 you can use .Net Standard 2.1 in Xamarin Android apps.

这篇关于如何在xamarin Android上使用netstandard 2.1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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