问题
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