Ask coding questions

← Back to all posts
System.Drawing Assembly Refrence

I dont understand how to fix the error this code gives, can someone help. Im trying to use the drawing namespace but it keeps saying im missing the System.Drawing assembly reference. i tried looking it up and it mentioned dll files?? I don't know pls help

Answered by SixBeeps (5221) [earned 5 cycles]
View Answer
SixBeeps (5221)

System.Drawing is not a default namespace in Replit's installation of Mono for some reason. You need to upload its DLL (usually comes with an installation of either Mono or .NET) and refer to it when compiling. I could make a quick tutorial for that if you want.

As a side note, Forms will not work on Replit. They are exclusive to Windows, and Replit runs on Linux.


@SixBeeps Okay thanks, can you please make a tutorial I've been trying to figure this out all day

ZhongRietveld (30)

On line 6 jou must write:

Console.WriteLine ("hey")

SixBeeps (5221)

@ZhongRietveld Console.Write() is a method that does something different than Console.WriteLine(). Either one outputs stuff to the console.