xamarin - MvvmCross assembly referenced from Cirrious.MvvmCross.dll could not be loaded: System -


i'm trying set mvvmcross application project , run unit tests against (namely view models in it). i'm using xamarin studio on os x (v. 4.0.4, latest @ time of writing).

the mvvmcross app set portable class library. test assembly set plain mono/.net assembly (not pcl) referencing nunit framework.

when trying execute tests, fail system.typeloadexception.

i have run tests mono binding log on. here's output:

mono: following assembly referenced /users/jr/dev/rowinginmotion-cross/rowinginmotion.mobile.boatapp.tests/bin/debug/cirrious.mvvmcross.dll not loaded: assembly: system (assemblyref_index=3) version: 2.0.5.0 public key: 7cec85d7bea7798e system error: invalid argument

mono: failed load assembly cirrious.mvvmcross[0x559960]

mono: not load file or assembly 'system, version=2.0.5.0, culture=neutral, publickeytoken=7cec85d7bea7798e, retargetable=yes' or 1 of dependencies.

is test setup not supported=

this problem linked fact xamarin , mono don't yet support portable class libraries - instead compile , link against local fixed assemblies depending on version of mono (xamarin.android, xamarin.ios, etc) have loaded - see http://slodge.blogspot.co.uk/2013/01/almost-portable-binaries.html more information.

on windows, able around problem using bindingredirect functionality, haven't yet found way around problem using xbuild within xamarin's environments (e.g. see pcl , mac issues on http://forums.xamarin.com/discussion/3733/playing-with-pcls)

the way can see of loading code in full .mac (.net) project use xamarin recommended approach of file-linking - duplicating project files , compiling duplicate against appropriate target.

hopefully changing - official pcl support due in alpha in coming days , weeks.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -