dementeddevil / BarcodeRenderingFramework

A simple framework for rendering barcodes with SSRS integration
Apache License 2.0
63 stars 43 forks source link

.Net core 3.0 Reference to type 'Image' claims it is defined in 'System.Drawing' but it could not be found #12

Open harissg opened 4 years ago

harissg commented 4 years ago

The Code128BarcodeDraw Draw() method was working fine in the full .NET framework environment. However, as the project was ported over to the recent .net core 3.0 - It is complaining about Image not being available.

I understand there is a new System.Drawing.Common for .net core that is probably not being used in the BarcodeRenderingFramework....

Example:

                var bc = BarcodeDrawFactory.Code128WithChecksum;
               var img = bc.Draw(barcode, 60, 1); <<< error

Is there a workaround for this?

rhourani-kassavirtanen commented 2 years ago

Hi, have you find a workaround for it pls? @harissg i am facing same problem

harissg commented 2 years ago

Hi,

I ended up using https://github.com/Tagliatti/NetBarcode as a workaround and had to ditch BarcodeRenderingFramework. Hope this helps.

rhourani-kassavirtanen commented 2 years ago

Hi,

Thank you for your reply, me too I ended up changing the library to ZXing.Net https://github.com/micjahn/ZXing.Net/ it is fine till now.

Hopefully this helps others as well!