Page 1 of 1

Error compiling 380-WinForms.cobra

PostPosted: Tue Jul 21, 2009 7:13 am
by poematrix
Hi.

I get an error compiling 380-WinForms.cobra: "cannot locat namespace System.Windows.Forms". What do I need to do to correct this error?

TIA,
Elan

Re: Error compiling 380-WinForms.cobra

PostPosted: Tue Jul 21, 2009 10:38 am
by Charles
Does it work if you try this:
Code: Select all
cobra -ref:System.Windows.Forms 380-WinForms.cobra


What version of Cobra? Are you on .NET or Mono? Version? If on Mono, what op sys and version?

It's working on my system out of subversion with .NET on Windows XP SP 2.

Re: Error compiling 380-WinForms.cobra

PostPosted: Tue Jul 21, 2009 6:15 pm
by poematrix
Hi Chuck.

Thanks for the prompt reply.

The following code worked: cobra -reference:System.Windows.Forms 380-WinForms.cobra
(It did not work when I used "-ref" instead of "-reference".)

I am running cobra 0.8.0
I am on Windows XP SP3
I assume that it follows that this is Cobra .NET and not Cobra Mono?

Re: Error compiling 380-WinForms.cobra

PostPosted: Tue Jul 21, 2009 11:30 pm
by Charles
Now that 0.8 is over a year old, I think you should use the 2009-06-09 release with many more fixes, enhancements and battle readiness. Of course, now that 0.8 is over a year old, you probably think I should cut a 0.8.1 release. :-D

Here is a direct link: Cobra-Informal-Release-2009-06-09.zip

I think I'll need to revamp the Downloads page push people in this direction more.