Skip to content

QRCode class is not visible on net6.0 targeted web app projects #366

Closed

Description

@mkavici

QRCode class is not visible on net6.0 targeted web app projects

Type of issue

[x] Bug

Possible Solution (optional)

https://github.com/codebude/QRCoder/blob/cecf2066d3f3a74b142aaa7c8d9f744c4673118c/QRCoder/QRCode.cs#L1
#if NETFRAMEWORK || NETSTANDARD2_0 || NET5_0 || NET6_0_WINDOWS || NET6_0

  • Version used: 1.4.3
  • Environment (.NET 6):

Activity

  1. wensaint commented on Dec 30, 2021

    @wensaint

    run into the same error...

  2. srofi commented on Dec 30, 2021

    @srofi

    Same here

  3. Deep-Winter commented on Jan 4, 2022

    @Deep-Winter

    Same error in dotnet6 using the GoogleAuthenticator lib. It runs into an error because QRCoder does not support dotnet6 in no windows environments

  4. alex-jitbit commented on Jan 5, 2022

    @alex-jitbit

    It's because of #315

  5. FMuro77 commented on Jan 10, 2022

    @FMuro77

    Targeted on Console App or Worker cause same error because of QRCode class is not visible using 1.4.3 and .NET6.0

  6. p10tyr commented on Jan 12, 2022

    @p10tyr

    Ya man the NET6_0_WINDOWS bricked the class from being visible in NET6 projects. the same for like SVG.

    Luckily I can just copy pasta it and it will for for the next 3 years until i have to update this package.

    -_EDIT - FYI
    So I removed the NET6_0_WINDOWS and just left [System.Runtime.Versioning.SupportedOSPlatform("windows")] and getting this "warning"
    For me since I copied I will just remove all the meta data since its only gonna run on winblows any way

    image

    Thanks friends

  7. WeamHaleemi commented on Dec 7, 2022

    @WeamHaleemi

    I ran into the same problem and i used 1.4.1 QrCoder instead of 1.4.3 and things worked normally

  8. FMuro77 commented on Dec 7, 2022

    @FMuro77

    Dec 22 is one year anniversary of this bug xD

  9. Shane32 commented on Oct 2, 2025

    @Shane32
    Owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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