Hey guys,
So I've been starting to learn C#, but recently when I was tinkering around with the GUI, my namespace gets screwed up. I'm using Mono on a Mac, so in order to compile I am using Terminal. I locate the directory / file and do:
gmcs Main.cs /r:System.Drawing /r:System.Windows.Forms
I need to do that step because System.Drawing and System.Windows.Forms are not built into mono, so in order to have the using step with them, that has to be done. It then gives me an exe file, which I open with:
mono Main.exe
My issue is that I then can't reference any of the custom classes. Here's an example. I have a class called Vector. When I removed using System.Windows.Forms and System.Drawing, and compile it in Mono itself, it goes perfectly and I can have something like:
Vector v = new Vector( ... )
But when I use Terminal to compile it (with or without the other usings), it gives me this error in Terminal:
Main.cs(12,25): error CS0246: The type or namespace name `Vector' could not be found. Are you missing a using directive or an assembly reference?
Is there any way to include the custom classes and fix this problem?