[MonoTouch] Using resx resources on monotouch

Felix Collins felix at intranel.com
Mon Mar 12 23:24:43 UTC 2012




On 13/03/2012 11:38 a.m., Rolf Bjarne Kvinge wrote:
>  Hi,
>
>  The crash you are seeing looks like an older bug (which version of MonoTouch are you using?) where references got stale somehow.
>
Monotouch 5.2.5
Monodevelop 2.8.6.5
Xcode 4.2.1
MacOSX 10.7.3

>  Can you try doing the rename, and then delete the bin and obj directories in all the project directories, before you rebuild. Also ensure you clean the iOS simulator (in the main menu, "iOS Simulator ->  Reset Contents and Settings" first.
Tried it.  Same issue.
>
>  If this doesn't work you should file a bug, it's clearly a scenario that should work.
>
Hmmm. I just tried a test solution to isolate the problem and it worked.  Then I tried naming the output of the referenced dll with the same base name as the executable.  This failed.  So it seems that it is not possible to have MyAssembly.dll and MyAssembly.exe (or whatever) in the same solution.  Is is legal to do this (it seems to work for a console app on mac/windows)?  If it is, then the bug is in Monotouch.  If not then Monodevelop or the compiler should throw an error about ambiguous references.

I have a test project I can send.  I would file a bug but I'm not sure where the fault lies.

Now back to trying to get the resources to load...
Regards,
Felix





More information about the MonoTouch mailing list