Skip to content

.NET 6.0 Compilation Error: The type or namespace name 'QRCode' does not exist in the namespace 'QRCoder'  #382

Open
@Illeris

Description

@Illeris

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)

  • Include library in .NET 5.0 assembly project
  • Include QRCoder (sth like this):
    QRCoder.QRCodeGenerator qrGenerator = new QRCoder.QRCodeGenerator();
    QRCoder.QRCodeData qrCodeData = qrGenerator.CreateQrCode(payloadMessage, eccLevel);
    QRCoder.QRCode qrCode = new QRCoder.QRCode(qrCodeData);
  • Compile : will work
  • Switch target of project to .NET 6.0 : error

Compilation: VS2022

Your Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions