You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[x] Bug
[ ] Question (e.g. about handling/usage)
[ ] Request for new feature/improvement
Expected Behavior
The QRCode class should be found and usable after updating to the latest version of QRCoder 1.4.2 -> 1.6.0. The following code should compile and work as it did with previous versions:
usingvarqrCode=new QRCode(qrCodeData);
Current Behavior
After updating to the latest version of QRCoder, the QRCode class can no longer be found. The compiler throws an error:
Error (active) CS0246 The type or namespace name 'QRCode' could not be found (are you missing a using directive or an assembly reference?)
This is breaking existing code that was working fine with previous versions 1.4.2.
Compiled from source or NuGet package?: NuGet package
Used payload generator: QRCodeGenerator
Environment net8.0
Additional context:
Operating System: Windows
This code was working fine until the update from 1.4.2 -to 1.6.0.
The text was updated successfully, but these errors were encountered:
badrshs
changed the title
QRCode class not found after updating from to latest version
QRCode class not found after updating from 1.4.2 to 1.6.0Sep 17, 2024
[SuppressMessage("Interoperability", "CA1416:Validate platform compatibility")]
private Bitmap GenerateQrCode(string text, int size)
{
using var qrGenerator = new QRCodeGenerator();
using QRCodeData qrCodeData = qrGenerator.CreateQrCode(text, QRCodeGenerator.ECCLevel.Q);
using var qrCode = new PngByteQRCode(qrCodeData);
byte[] qrCodeAsPngByteArr = qrCode.GetGraphic(size);
using var ms = new MemoryStream(qrCodeAsPngByteArr);
return new Bitmap(ms);
}
Type of issue
[x] Bug
[ ] Question (e.g. about handling/usage)
[ ] Request for new feature/improvement
Expected Behavior
The
QRCode
class should be found and usable after updating to the latest version of QRCoder1.4.2 -> 1.6.0
. The following code should compile and work as it did with previous versions:Current Behavior
After updating to the latest version of QRCoder, the
QRCode
class can no longer be found. The compiler throws an error:This is breaking existing code that was working fine with previous versions
1.4.2
.Steps to Reproduce (for bugs)
Your Environment
1.6.0
net8.0
Additional context:
1.4.2 -to 1.6.0
.The text was updated successfully, but these errors were encountered: