barnhill / barcodelib

C# Barcode Image Generation Library
Apache License 2.0
733 stars 238 forks source link

.net 4.0 Support? #114

Closed abhijeetk1810 closed 3 years ago

abhijeetk1810 commented 3 years ago

Hello All,

I am trying to install via NuGet and getting the following error:

Installing 'BarcodeLib 2.2.9'. Successfully installed 'BarcodeLib 2.2.9'. Adding 'BarcodeLib 2.2.9' to Library Management System. Uninstalling 'BarcodeLib 2.2.9'. Successfully uninstalled 'BarcodeLib 2.2.9'. Install failed. Rolling back... Could not install package 'BarcodeLib 2.2.9'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0,Profile=Client', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

My Target framework is .net 4.0

barnhill commented 3 years ago

Maybe it's the transitive dependency?

Brad Barnhill, MSN, RN bradbarnhill@hotmail.com

On Wed, Jan 6, 2021, 5:23 AM abhijeetk1810 notifications@github.com wrote:

Hello All,

I am trying to install via NuGet and getting the following error:

Installing 'BarcodeLib 2.2.9'. Successfully installed 'BarcodeLib 2.2.9'. Adding 'BarcodeLib 2.2.9' to Library Management System. Uninstalling 'BarcodeLib 2.2.9'. Successfully uninstalled 'BarcodeLib 2.2.9'. Install failed. Rolling back... Could not install package 'BarcodeLib 2.2.9'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0,Profile=Client', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

My Target framework is .net 4.0

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/barnhill/barcodelib/issues/114, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5S2DTNQCM2AFCEOTHLICTSYRBZ7ANCNFSM4VXMX4WA .

barnhill commented 3 years ago

Not sure that the dependency System.Drawing.Common supports 4.0.0

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

danielchalmers commented 3 years ago

barcodelib targets .NET Standard 2.0 which requires at least 4.6.1

barnhill commented 3 years ago

Closing per @danielchalmers comment