[MonoTouch] System.Reflection.Assembly.GetModules throws System.NotImplementedException on MT 4.2.1

2011-09-22 Thread Michal Sartoris
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

Re: [MonoTouch] System.Reflection.Assembly.GetModules throws System.NotImplementedException on MT 4.2.1

2011-09-22 Thread Sebastien Pouliot
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