Hello Michal, This has been fixed just after the 4.2.1 release and will be part of future MonoTouch releases.
You can try disabling the linker (i.e. set the linker option to "Don't link") but you might run into bug #587 (also fixed but not part of 4.2.1) on device builds. If this happens you can also try using "Link SDK assemblies" and add "--linkskip=mscorlib" to the "extra mtouch arguments". Regards, Sebastien Le 2011-09-22 à 11:47, Michal Sartoris <[email protected]> a écrit : > This line of code throws System.NotImplementedException in code build with MT > 4.2.1 on device. It works on simulator. > > > > var path = > Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName); > > > > System.NotImplementedException: Derived classes must implement it > > at System.Reflection.Module.IsResource () [0x00000] in > /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/Module.cs:361 > > at System.Reflection.MonoAssembly.GetModules (Boolean getResourceModules) > [0x00024] in > /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/MonoAssembly.cs:110 > > at System.Reflection.Assembly.GetModules () [0x00000] in > /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/Assembly.cs:705 > > at MobileCrm.Program.RunApplication (System.Object applicationContext) > [0x00006] in > /Users/michalsartoris/Projects/Resco.MonoTouch/SwedishMatch/MobileCrm/Program.cs:183 > > > > Best regards, > > > > Ing. Michal Sartoris > > Resco.net > > > > > > __________ Information from ESET NOD32 Antivirus, version of virus signature > database 6485 (20110922) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
