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.
I have a Xamarin Forms 18.104.22.168 solution with a unit tests project using Moq (https://www.nuget.org/packages/Moq/) version 4.7.99. All unit tests run fine.
After upgrading Xamarin Forms to version 22.214.171.1246-pre6 I have rebuild my solution. Now when I try to run the unit tests in the ClassInitialize method on line "Xamarin.Forms.Mocks.MockForms.Init();" I get the exception:
Could not load type 'Xamarin.Forms.IPlatformServices' from assembly 'Xamarin.Forms.Core, Version=126.96.36.199, Culture=neutral, PublicKeyToken=null'.
I am not sure if this is a Moq or XF problem.
Found it, version 2.3.5 is not support (yet?) by Xamarin.Forms.Mocks.
From the documentation in https://github.com/jonathanpeppers/Xamarin.Forms.Mocks/
This issue can be closed
Added an issue there, see: