Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Unable to use Graphics class in *.Core #6885


User avatar
0
TimMackey created

I'm migrating a file from another working app into .Core project. I'm not able to find a package or library to supply the Graphics class, hence, the symbol remains unresolved.

using System.Drawing;

public int X, Y, Width, Height;

public int Draw_Box(Graphics gfx)
{
    gfx.DrawRectangle(Pen,  X, Y, Width, Height);
    return Height;
}

The Graphics class is resolved in .Application project.

What package/library will resolve the reference in .Core project?


2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    please install the System.Drawing.Common package to the Core project.

    https://www.nuget.org/packages/System.Drawing.Common/4.5.1

  • User Avatar
    0
    TimMackey created

    Issue solved. Thank you.