System.drawing namespace not found under console application

前端 未结 7 612
悲&欢浪女
悲&欢浪女 2020-12-02 15:08

I selected console application as my C# project. But the imports that seemed to work under windows form project doesnt seem to work here. It says that the drawing namespace

7条回答
  •  北荒
    北荒 (楼主)
    2020-12-02 15:50

    You need to add a reference to System.Drawing.dll.

    As mentioned in the comments below this can be done as follows: In your Solution Explorer (Where all the files are shown with your project), right click the "References" folder and find System.Drawing on the .NET Tab.

提交回复
热议问题