NuGet product used: VS UI
NuGet version: 5.8.0
VS version: VisualStudio.16.Release/16.8.3+30804.86
OS version: Windows 8.1 x64
Create Android Class Library in MSVS for Windows
Add a Nuget PackageReference that has several TFMs. In my case it is MvvmCross 7.1.2 that have TFMs:
.NETCoreApp 3.1
.NETFramework 4.6.1
.NETStandard 2.0
MonoAndroid 10.0
Tizen 4.0
UAP 10.0.16299
Xamarin.iOS 1.0
Xamarin.Mac 2.0
Xamarin.TVOS 1.0
Xamarin.WatchOS 1.0
Use any type that is Android specific (ex. MvxAndroidViewPresenter)
@Paul-N Your Target Framework is v9.0, not v10.0.
You will have to change this to support it.
Yes, changing Android version from 9 to 10 is solved the problem. Maybe it worth to warn user about his lib's Android version or update Android Class Library template supplied with MSVS. Anyway you're right, it's not a Nuget problem.
We're working on a way to tell you if a package is compatible or not with your application and we may be able to prompt you to update your TFM if we notice you're not on the latest version the library supports.