System.drawing namespace not found under console application

前端 未结 7 603
悲&欢浪女
悲&欢浪女 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:53

    1. Add using System.Drawing;
    2. Go to solution explorer and right click on references and select add reference
    3. Click on assemblies on the left
    4. search for system.drawing
    5. check system.drawing
    6. Click OK
    7. Done

提交回复
热议问题