Which .Net Standard version supports which Android versions?

假装没事ソ 提交于 2020-01-04 09:40:46

问题


I want to convert a Xamarin PCL project to .Net Standard.

My question is, what versions of Android will that support? My current project supports Android 4. Will .Net Standard be able to support it? Does it depend on the .Net Standard version?

I've seen this table but it only tells me the "Xamarin" version supported, and I don't understand the connection between that and the Android version. Is .Net Standard unrelated to the Android version (somewhat like the C# version is separate from the .Net version) or is .Net Standard tied to specific versions of Android (among the other framework it supports)?


回答1:


The connection is between the Version of Xamarin.Android, not the Android Version / API level. This means that as long as you are using the version of Xamarin.Android or greater in your local installation, you will support .NET Standard.

  • .NET Standard 1.0-1.6 has been supported in Xamarin.Android since Xamarin.Android 7.0.

https://developer.xamarin.com/releases/android/xamarin.android_7/xamarin.android_7.0/ (Sorry there is no note in these release notes as they recently were revamped)

  • .NET Standard 2.0 has been supported in Xamarin.Android since Xamarin.Android 8.0.

https://developer.xamarin.com/releases/android/xamarin.android_8/xamarin.android_8.0/#.NET_Standard_2.0_Support



来源:https://stackoverflow.com/questions/48214401/which-net-standard-version-supports-which-android-versions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!