[MonoDevelop] What is happening with MD 2 alpha 2 here?

Christian Hoff christian_hoff at gmx.net
Sun Dec 28 13:46:32 EST 2008


alan battersby wrote:
> I am using MD 2 alpha 2 downloaded and compiled on opensuse 11.  What
> does this warning mean?
>
> [Task:File=/home/alan/C# development/OTPaths Lattice
> v1.0/OTPaths/gtk-gui/gui.stetic, Line=0, Column=0, Type=Warning,
> Priority=Normal, Description=/home/alan/C# development/OTPaths Lattice
> v1.0/OTPaths/gtk-gui/gui.stetic: Could not generate code for widgets of
> type: OTPaths.JointUI. The widget could not be found in any referenced
> library. The generated code may be invalid.]
>
> I can load the widget in the editor window and see its design and source
> code. It loads when I either select the source JointUI.cs  in solution
> explorer or from the User Interface folder . So why am I getting this
> message.  There are three other Widgets affected in the same way. All
> were compiling fine a couple of minutes ago, and I was working on none
> of them, MD crashed and when restarted I get the above plus another
> error shown below
>
> [Task:File=/home/alan/C# development/OTPaths Lattice
> v1.0/OTPaths/Dialogs/CellDialog.cs, Line=62, Column=25, Type=Error,
> Priority=Normal, Description=Cannot implicitly convert type
> `Cairo.Context' to `Cairo.Context'(CS0029)]
>  from this line
>
> using (Cairo.Context ct = Gdk.CairoHelper.Create (drawingarea.GdkWindow))
>   
Yeah I got the same errors,too and I never found the reason, but I 
suspect that this is caused by a version conflict. There are 2 versions 
of Mono.Cairo in your GAC: version 1.1 and 2.0. Gdk links against the 
1.1 version whereas you are probably linking 2.0.

I am using multiple assemblies in my project and some are compiled with 
the 3.5 profile and other parts with 2.0. If I called a method taking a 
Cairo.Context in another assembly of my project, then I got errors 
during the build which disappeared by re-building a part of the project. 
Then MD was using MSBuild as the default project format and I re-created 
my project files to use the new format. And suddenly this error didn't 
occur anymore.

I am really wondering what the real cause of these errors is.
>           
> Has anyone seen this type of bug in MD before or suggest why the
> warnings are occurring?
>
> Alan          
>
>
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
>   



More information about the Monodevelop-list mailing list