-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET 6.0 Compilation Error: The type or namespace name 'QRCode' does not exist in the namespace 'QRCoder' #382
Comments
Same problem here... |
Also seeing this. |
Also here. Any solution for this ? |
Here is the explanation and some possible solutions: |
I'm new here but my experience was like this.... I need to create a program to generate some QR codes. Ok new console app and take default of .net 6. So I'd that a notation be placed in the README.md for newcomers like myself. |
roll back to 1.4.1, then the error gone. |
This works for me. Thank you @wensaint .. :) |
QRCode qrcode = new QRCode(codeData); ????? |
Actually no - I had to take it back.. |
Same issue #435 |
rollback to version 1.4.1, this fixes the QRCode issues on Dotnet 6.0 and also 7.0 |
thank you ... |
I found the problem. Go to the project properties, in the Target OS, specify it to Windows. Rebuild the solution. Problem solved. |
Just switch to Nuget package manager version 1.4.1 |
Type of issue
[X] Bug
[ ] Question (e.g. about handling/usage)
[ ] Request for new feature/improvement
Expected Behavior
.NET 5.0 project with QRCoder assembly reference compiles without error.
.NET 6.0 project with QRCoder assembly reference does not compile : The type or namespace name 'QRCode' does not exist in the namespace 'QRCoder'
Current Behavior
Possible Solution (optional)
Steps to Reproduce (for bugs)
QRCoder.QRCodeGenerator qrGenerator = new QRCoder.QRCodeGenerator();
QRCoder.QRCodeData qrCodeData = qrGenerator.CreateQrCode(payloadMessage, eccLevel);
QRCoder.QRCode qrCode = new QRCoder.QRCode(qrCodeData);
Compilation: VS2022
Your Environment
The text was updated successfully, but these errors were encountered: