Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
After updating Xamarin.Forms and Android packages with Nuget in each of my 6 interdependent projects, I get the following unexpected error:
System.IO.FileNotFoundException. Could not load assembly utils (it's a PCL). The root cause is the following found in Xamarin.Android.Common.Targets:
<Output TaskParameter="ResolvedResourceDirectories" PropertyName="LibraryResourceDirectories" />
<Output TaskParameter="ResolvedAssetDirectories" PropertyName="LibraryAssetDirectories" />
<Output TaskParameter="ResolvedEnvironmentFiles" PropertyName="LibraryEnvironments" />
<Output TaskParameter="ResolvedResourceDirectoryStamps" PropertyName="_LibraryResourceDirectoryStamps" />
The message I get when hovering over the tooltip error is:
"The element 'Target' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'ResolveLibraryProjectImports' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. List of possible elements expected: 'Task, AL, AspNetCompiler, AssignCluture, .............. <many more>......."
I also cannot add a reference to Xamarin Forms in one of my projects that I tried to fix up after these errors:
"'Xamarin.Forms 126.96.36.19971' already installed.
Adding 'Xamarin.Forms 188.8.131.5271' to utils.
Could not install package 'Xamarin.Forms 184.108.40.20671'. You are trying to install this package into a project that targets 'portable-net45+sl50+MonoAndroid10+xamarinios10+MonoTouch10', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author."
Your PCL project seems to be targeting Profile24 which is not compatible with Xamarin.Forms. The recommended PCL profiles for Xamarin.Forms are 78 and 259. I would try changing the PCL profile to 78 and see if that fixes the build error.
The build error seems to be because it cannot find the utils assembly, which is not being built I would guess since it is not referencing Xamarin.Forms.
Apologies. I thought I understood these PCL profiles until now. I finally get it. There's no bug.
Thanks a lot for your help!