In this article I will explain, how to resolve the following error: 'Could not load file or assembly 'System.Drawing.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.' in .Net Core.
Cause
The error occur when you are using classes in .Net Core that requires System.Drawing.Common namespace to be inherited.
If it is not inherited, you will get the error during runtime of your .Net Core application.
Here are the some classes that requires System.Drawing.Common namespace:
Example: Bitmap, Graphics, Brush, Pen etc.
Solution
In order to use this namespace you will need to install the
System.Drawing.Common package from
Nuget.