codebude / QRCoder

A pure C# Open Source QR Code implementation
MIT License
4.46k stars 1.09k forks source link

QRCOder.SvgQRCode is not available for .net6 Web Application. SVG is mostly used in web applications and not really relevant for windows apps.. I just added the SvgQRCode code to my web application to continue but you may want to ensure you can create svg for web in your package. #395

Closed endstreet closed 2 months ago

endstreet commented 2 years ago

Type of issue

[ ] Bug
[ ] Question (e.g. about handling/usage)
[ ] Request for new feature/improvement

Expected Behavior

Current Behavior

Possible Solution (optional)

Steps to Reproduce (for bugs)

Your Environment

coddo commented 1 year ago

We're currently developing on Linux and deploying on Linux. Using SvgQRCode worked in version 1.4.1. Now in version 1.4.3, the class SvgQRCode is no longer available.

This looks to be a blocker for anyone developing for Linux and wanting to upgrade to .NET 6.

This has been working fine on non-Windows platforms. Why was the support dropped in .NET 6?

PierreJeudiMerci commented 1 year ago

The main reason seems to be the following breaking change from .Net 6 : https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only

Shane32 commented 3 months ago

Fixed by:

codebude commented 2 months ago

As @Shane32 wrote - it's fixed. From QRCoder release 1.5.0 on the SvgQRCoder is avaible also on .NET 6+ (and newer) on non-Windows platforms.