Forum Xamarin.Forms

.NET 2.0 Compatibility issue in Xamarin.Forms

jstuardojstuardo Member ✭✭


I created a project that targets Android 8 at first, but I needed to downgrade to target Android 5.1.

I changed target platform, then I uninstalled all packages and finally, installed Xamarin.Forms that I knew it is the last version that supports Android 5.1.

When I installed it in the project, I am receiving the following warning:

Warning NU1701  Package 'Xamarin.Forms' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
I thought that I could target .NET 4.6.1 in that project but I can select only until 2.0.

How can I solve this? Please don't ask me to use a more recent Android version. I must use Android 5.1.

I am using Visual Studio 2019.



Best Answers


  • jstuardojstuardo Member ✭✭


    When I used last version of Xamarin.Forms this error was shown:

    The $(TargetFrameworkVersion) for MyApp.Android (v5.1) is less than the minimum required $(TargetFrameworkVersion) for Xamarin.Forms (8.1). You need to increase the $(TargetFrameworkVersion) for MyApp.Android.

    Last Xamarin.Forms is

    It does not matter if API is bellow Android 8. This is a development for an RFID device that uses Android so I don't plan to upload the app to Google Play.

    That device uses Android 5.1 so I should target that platform.

    Any further help, please?


Sign In or Register to comment.