Update Xamarin Forms libraries before start a new app

When you create a new Xamarin Forms project, the template download 28.0.1 Android libraries, but them are old because there is a new 28.0.3 version. If you try to upgrade the package, NuGet returns some errors. There are also some other libraries to update like Xamarin.Forms, Xamarin.Essentials and Microsoft.NETCore.UniversalWindowsPlatform for UWP Project.

Here a sequence of steps to upgrade Android libraries to 28.0.3 (and others to the last release).

  1. Uninstall Xamarin.Forms on all projects
  2. On Android project:
    1. Install Xamarin.Android.Support.Annotations
    2. Install Xamarin.Android.Support.Collections
    3. Update Xamarin.Android.Support.Core.Utils
  3. Update Xamarin.Essentials on all project
  4. On UWP project;
    1. Update Microsoft.NETCore.UniversalWindowsPlatform
  5. Install Xamarin.Forms on all project

Now, when you run NuGet console, you should have all packages updated and you can start to develop a new Xamarin Forms application.

Have a nice day!


Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo di WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione /  Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione /  Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione /  Modifica )

Connessione a %s...