Skip to content
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

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

Open
mkavici opened this issue Dec 22, 2021 · 8 comments
Open

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

mkavici opened this issue Dec 22, 2021 · 8 comments

Comments

@mkavici
Copy link

mkavici commented Dec 22, 2021

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

Type of issue

[x] Bug

Possible Solution (optional)

#if NETFRAMEWORK || NETSTANDARD2_0 || NET5_0 || NET6_0_WINDOWS

#if NETFRAMEWORK || NETSTANDARD2_0 || NET5_0 || NET6_0_WINDOWS || NET6_0

  • Version used: 1.4.3
  • Environment (.NET 6):
@wensaint
Copy link

run into the same error...

@srofi
Copy link

srofi commented Dec 30, 2021

Same here

@Deep-Winter
Copy link

Deep-Winter commented Jan 4, 2022

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

@alex-jitbit
Copy link

It's because of #315

@FMuro77
Copy link

FMuro77 commented Jan 10, 2022

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

@p10tyr
Copy link

p10tyr commented Jan 12, 2022

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

@WeamHaleemi
Copy link

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

@FMuro77
Copy link

FMuro77 commented Dec 7, 2022

Dec 22 is one year anniversary of this bug xD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants