1
votes

I want to setup the build of my Xamarin.Android app in VSTS. I received the following error in the Build.Xamarin.Android step: Error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ....\packages\Xamarin.Android.Support.Animated.Vector.Drawable.25.4.0.2\build\MonoAndroid70\Xamarin.Android.Support.Animated.Vector.Drawable.targets

I followed the steps as described on the page described in this link: https://docs.microsoft.com/nl-nl/vsts/build-release/apps/mobile/xamarin?tabs=vsts

What am I doing wrong?

1
Can you please check if the files referenced in csproj match the version linked in packages.config? - orhtej2
Also, does it build fine locally? - orhtej2
Yes the building is fine on my PC. The version in the referenced project are the same. - Marcel Beeker

1 Answers

1
votes

Build.Xamarin.Android step: Error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105.

You need to check two tasks in your build definition:

  1. Task : Use NuGet 4.3.0

  2. Task : NuGet restore

If any task is missing in your build definition, please add it. If the error persists, please provide the build log.