Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

System.Drawing.Color in console application

Simple question from .NET beginner. How to work with colors in console application? VS do not let me declarate System.Drawing.Color namespace. I need to assign color for one method in console application.

Regards, Tomas

like image 380
Tomas Avatar asked Feb 08 '10 13:02

Tomas


1 Answers

All you need to do is add a reference to System.Drawing.dll. This isn't included by default in a console app, but you can add it without any issues.

like image 194
Jon Skeet Avatar answered Oct 08 '22 18:10

Jon Skeet