This is on MacOS 10.7.4 with Mono 2.10.9_11 and Pinta 1.3
Steps to reproduce:
1) Create new blank image
2) Save - choose ORA file format
=> Exception that ICSharpCode.SharpZipLib is not found (see below for trace)
I have checked in /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/ICSharpCode.SharpZipLib
and I see the following versions of SharpZipLib
2.6.0.0__1b03e6acf1164f73
2.84.0.0__1b03e6acf1164f73
4.84.0.0__1b03e6acf1164f73
Exception trace:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'ICSharpCode.SharpZipLib, Version=0.84.0.0, Culture=neutral, PublicKeyToken=1b03e6acf1164f73' or one of its dependencies.
File name: 'ICSharpCode.SharpZipLib, Version=0.84.0.0, Culture=neutral, PublicKeyToken=1b03e6acf1164f73'
at Pinta.Actions.SaveDocumentImplmentationAction.SaveFile (Pinta.Core.Document document, System.String file, Pinta.Core.FormatDescriptor format) [0x00000] in <filename unknown>:0
at Pinta.Actions.SaveDocumentImplmentationAction.SaveFileAs (Pinta.Core.Document document) [0x00000] in <filename unknown>:0
at Pinta.Actions.SaveDocumentImplmentationAction.Activated (System.Object sender, Pinta.Core.DocumentCancelEventArgs e) [0x00000] in <filename unknown>:0
at Pinta.Core.FileActions.RaiseSaveDocument (Pinta.Core.Document document, Boolean saveAs) [0x00000] in <filename unknown>:0
at Pinta.Core.Document.Save (Boolean saveAs) [0x00000] in <filename unknown>:0
at Pinta.Actions.SaveDocumentAsAction.Activated (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <filename unknown>:0
at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in <filename unknown>:0
I checked the reference in the csproj, and it goes like this: "ICSharpCode. SharpZipLib, Version=0.84.0.0, Culture=neutral, PublicKeyToken= 1b03e6acf1164f7 3"> SpecificVersion >False< /SpecificVersio n> HintPath> ..\lib\ ICSharpCode. SharpZipLib. dll</HintPath>
"
<Reference Include=
<
<
</Reference>
"
So it shouldn't fail because of a version mismatch, and a hintpath is just a hint, it should check the GAC afterwards. I suppose we could try bundling the library with the app, but I'm interested to hear if anyone else has this issue first.