0

I have a Xamarin Forms Project - the Android project targets API 28 (Pie) and uses packages.config for the nuget references. All of the packages have a targetFramework="monoandroid90". The project compiles and runs correctly.

I want to migrate to using PackageReference, so I use the Migrate packages.config to PackageReference option.

After this completes I try to build the project and receive an error regarding a missing package:

Xamarin.Android.Support.Annotations.28.0.0.1

Looking in the packages folder, I can see that none of the Xamarin.Android.Support packages have been downloaded and I can't get them to download - even by reinstalling the package.

I also noticed that the csproj file reference monoandroid81 for all the nugets, even though the packages.config used monoandroid90

Has anyone had a similar difficulty after migrating?

markpirvine
  • 1,485
  • 1
  • 23
  • 54

0 Answers0