It is currently Sat Oct 20, 2018 4:12 pm Advanced search

C# system.Drawing not included

Code won't compile? Found a bug? Post here!

C# system.Drawing not included

Postby tebele » Sat Feb 13, 2010 8:07 pm

Hi everyone.
I'm trying to submit my project, but I receive an e-mail which says "[Contest] Submission Failure‏".
In the specifications it is written:

Pathfinder.cs(5,14): error CS0234: The type or namespace name `Drawing' does not exist in the namespace `System'. Are you missing an assembly reference?
Pathfinder.cs(280,32): error CS0246: The type or namespace name `Point' could not be found. Are you missing a using directive or an assembly reference?
Failed, output file MyTronBot.exe was not created


I add a "using System.Drawing" in all the clases..

However, when I compile my solution in the Visual Studio it works without any problem!
I'm developing in C#.

Anybody has idea what is happening?
Thanks!
tebele
Cadet
 
Posts: 5
Joined: Fri Feb 12, 2010 2:23 pm

Re: Compiler Errors when submitting. Why? (C#)

Postby BlackWave » Sat Feb 13, 2010 10:20 pm

do you really need System.Drawing?
BlackWave
Cadet
 
Posts: 5
Joined: Mon Feb 08, 2010 2:28 pm

Re: Compiler Errors when submitting. Why? (C#)

Postby tebele » Sat Feb 13, 2010 10:29 pm

Yes, I do!
tebele
Cadet
 
Posts: 5
Joined: Fri Feb 12, 2010 2:23 pm

Re: Compiler Errors when submitting. Why? (C#)

Postby amstan » Sat Feb 13, 2010 10:36 pm

We do not link System.Drawing to the bots, why do you think you need it?
Alexandru M. Stan
Contest Organizer
User avatar
amstan
Contest Organizer
 
Posts: 691
Joined: Sun Jan 31, 2010 4:02 am
Location: Stoney Creek, Ontario

Re: Compiler Errors when submitting. Why? (C#)

Postby tebele » Sat Feb 13, 2010 10:45 pm

I use Points in my strategy..
Is there anything different to replace them? Or why can't I use them?

Thanks.
tebele
Cadet
 
Posts: 5
Joined: Fri Feb 12, 2010 2:23 pm

Re: Compiler Errors when submitting. Why? (C#)

Postby amstan » Sat Feb 13, 2010 10:49 pm

I don't see why you need a graphics library to use points.
Alexandru M. Stan
Contest Organizer
User avatar
amstan
Contest Organizer
 
Posts: 691
Joined: Sun Jan 31, 2010 4:02 am
Location: Stoney Creek, Ontario

Re: C# system.Drawing not included

Postby tebele » Sat Feb 13, 2010 11:04 pm

Ok, I removed it and now it works.
Thanks a lot!
tebele
Cadet
 
Posts: 5
Joined: Fri Feb 12, 2010 2:23 pm


Return to Technical Issues

Who is online

Users browsing this forum: No registered users and 2 guests

cron