Bug 56114 - XamarinAndroidBuildResourceRestore Error when Build after update xamarin nuget
Summary: XamarinAndroidBuildResourceRestore Error when Build after update xamarin nuget
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 7.2 (15.1)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-05-08 21:12 UTC by frank.libolt
Modified: 2017-08-21 20:39 UTC (History)
8 users (show)

Tags: bb
Is this bug a regression?: ---
Last known good build:

Error details (11.88 KB, image/png)
2017-05-08 21:12 UTC, frank.libolt

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description frank.libolt 2017-05-08 21:12:05 UTC
Created attachment 22011 [details]
Error details

I have this error after updated Xamarin.forms, I Hit it when building the App.Droid project. It says "XamarinBuildAndroidResourceRestore could not be initialized" and "XamarinBuildAndroidResourceRestore target not support the "VSInstallRoot" parameter".

I have the following config:

Xamarin VS v4.4.0.34
Xamarin.Android SDK v7.2.0.7
Visual Studio 2017

And the following Build output:

1>  App.Droid -> D:\project\App.Droid\App.Droid\bin\Release\App.Droid.dll
2>------ Début de la génération : Projet : App.Droid, Configuration : Release Any CPU ------
2>D:\project\App.Droid\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets(243,5): warning : All projects referencing App.Droid.csproj must install nuget package Microsoft.Bcl.Build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317569.
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1964,5): warning MSB3243: Impossible de résoudre le conflit entre "mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" et "mscorlib, Version=, Culture=neutral, PublicKeyToken=7cec85d7bea7798e". Choix arbitraire de "mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089".
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1964,5): warning MSB3277: Des conflits entre différentes versions du même assembly dépendant ont été détectés, mais n'ont pas pu être résolus.  Ces conflits de référence sont consignés dans le fichier journal de génération quand le niveau de commentaires est défini sur Detailed.
2>D:\project\Creonslelien\Creonslelien.Shared\packages\Xamarin.Build.Download.0.4.3\build\Xamarin.Build.Download.targets(98,4): error MSB4064: Le paramètre "VsInstallRoot" n'est pas pris en charge par la tâche "XamarinBuildAndroidResourceRestore". Vérifiez que le paramètre existe pour la tâche et qu'il représente une propriété d'instance publique définissable.
2>D:\project\Creonslelien\Creonslelien.Shared\packages\Xamarin.Build.Download.0.4.3\build\Xamarin.Build.Download.targets(92,3): error MSB4063: Impossible d'initialiser la tâche "XamarinBuildAndroidResourceRestore" avec ses paramètres d'entrée. 
========== Génération : 1 a réussi, 1 a échoué, 4 mis à jour, 0 a été ignoré ==========
========== Déploiement : 0 a réussi, 0 a échoué, 0 a été ignoré ==========

Please Help, and thank you for all your responses.
Comment 1 Bright Lee 2017-06-06 10:54:10 UTC
same issue. 
Other say it will be resolved when I update build nuget to 0.4.5 but that solution was not working for me.
Comment 2 Mark McLemore 2017-06-27 19:01:40 UTC
Thank you for taking the time to submit the bug. We are unable to reproduce this issue using the latest Xamarin Forms preview ( and Visual Studio 2017 version 15.2. Can you update to these versions to see if that clears up the problem?

If that doesn't correct the problem, could you please attach a reproduction to the bug by starting with a clean Xamarin.Forms project and adding just the code necessary to demonstrate the issue? We would very much appreciate it.
Comment 3 Jon Douglas [MSFT] 2017-08-21 20:39:31 UTC
Because we have not received a reply to our request for more information we are closing this issue. If you are still encountering this issue, please reopen the ticket with the requested information. 

Secondly, ensure you are on the latest version of Xamarin.Build.Download from NuGet as it will contain the most recent bits relevant to these targets.