c# - MonoMac Could Not Load Assembly or Dependency -
i have simple application built using monodevelop 3.0/xcode 4.0/.net 4.0 on os x 10.7 (lion). basically, have windows gui , mac gui application, , both share class library. class library simple (deliberately), , passes moma tests flying colors. os x gui runs on development os x machine, when create .pkg file , install on test os x machine, won't run @ all. have mono runtime installed on test machine -- runtime only, not sdk or monodevelop. application open, make call shared library, fails
system.io.filenotfoundexception: not load file or assembly 'xxx' or 1 of dependencies.
my shared library has following dependencies:
- system
- system.configuration
- system.core
- system.xml.linq
- system.data.datasetextensions
- microsoft.csharp
- system.data
- system.xml
surely basic mono framework supports of these assemblies, right? missing? can't believe releasing simple application (via .pkg file, not appstore) difficult! please point me in right direction? thanks.
ok, so, total noob/forehead slapping moment: reason application ran on development os x environment not on test box? .net framework! built class library visual studio 2012/.net 4.5/windows 7, checked moma, copied dev os x, set reference in monomac project, , fine, right? that's because box had monodevelop , .net framework on it! when created .pkg , installed on new os x box, install smart enough download , install mono environment, not .net framework, , can blame it? solution: build class library against mono 4.0, , use that assembly in monomac release! problem solved.
thanks , comments. please forgive basic stupidity of question: i'm not mono/os x noob, i'm desktop development noob, too. i'm web guy, cryin' out loud!
Comments
Post a Comment