Hi,
From my add-in I have always had this code that could save a graph (Bitmap) from a WPF form to a png file. Now I have moved my codebase to a 3.0.36057, now any code that has anything to with System.Drawing throws an exception, saying that the dll for System.Drawing is missing. It's not its there - it compiles and everything is fine - just like it was for earlier versions of my add-in.
So, I believe this dll is not thread-safe so I tried to implement the code:
FrameworkApplication.Current.Dispatcher.Invoke(() =>
{
Bitmap myBitmap = null;
});
I can't get it to work at all. Can any help me out to understand how I can get this to run. I've spent 2 days on this now and I'm getting pretty frustrated.
and the exception is thrown:
"Could not load file or assembly 'System.Drawing.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.":"System.Drawing.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51"