Bug 34326 - Error on Xamarin.Forms.Forms.Init(): Could not load type [...] Version=1.0.5749.22428, Culture=neutral, PublicKeyToken=null while decoding custom attribute
Summary: Error on Xamarin.Forms.Forms.Init(): Could not load type [...] Version=1.0.57...
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.5.0
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-09-27 20:05 UTC by guillaume champlong
Modified: 2015-10-12 14:59 UTC (History)
5 users (show)

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

testcase, just build and run (2.74 MB, application/force-download)
2015-09-27 20:26 UTC, guillaume champlong

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 guillaume champlong 2015-09-27 20:05:41 UTC
I am trying to add a "common" platform-specific project to be able to duplicate app and change icon, launch screen etc.
When doing so, it seems no longer possible to use the DependencyService.
Attached is a sample project, just build and run.
Comment 1 guillaume champlong 2015-09-27 20:26:03 UTC
Created attachment 13096 [details]
testcase, just build and run
Comment 2 guillaume champlong 2015-09-27 20:27:07 UTC
Comment on attachment 13096 [details]
testcase, just build and run

The testcase contains Forms 1.3.3 but 1.5.0 also fails.
Comment 3 Rui Marinho 2015-10-12 14:59:07 UTC
You can make this work by using after Forms.Init() on your iOS project

DependencyService.Register<test_ios.Test> ();