Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Using different Xamarin.Forms versions for Android and UWP

$
0
0

As a general question, I suspect this may have been asked before but the search didn't help. Apologies if this is a repeat (or even a trivial one as I am in Xamarin learning mode).

I am aiming to target Android 7.0 (Nougat) and UWP 16299.
Xamarin.Forms ver 3.0.0.561731 works perfect but UWP has an issue with this version -- binding to ListView in XAML doesn't fire which was resolved in the follow up version 3.1.x

So I moved up my Xamarin.Forms to ver 3.1.0.583944 which UWP is now happily working with ListView updates. Now Android 7.0 is not happy with 3.1.x (again widely reported and something to do with TabbedPageRenderer). Bumping the Android version to 7.1 will solve this problem.
In summary: Xamarin.Forms 3.1.0.583944 and Android 7.1 is an easy solution.

However I would still like to include Android 7.0 in my project.

The solution is then: use Xamarin.Forms ver 3.0.0.561731 for Android 7.0; else use Xamarin.Forms ver 3.1.0.583944 perhaps higher (for UWP and Android 7.1)

What is the recommended approach for such conditional Xamarin.Forms version usage/compilation in a Xamarin project (based on .Net standard 2.0)?

Reading between lines, using different package versions seem discouraged but there is no escaping this as nothing can be perfect as shown with the issue just described.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>