QRCoder icon indicating copy to clipboard operation
QRCoder copied to clipboard

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

Open mkavici opened this issue 3 years ago • 8 comments

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):

mkavici avatar Dec 22 '21 12:12 mkavici

run into the same error...

wensaint avatar Dec 30 '21 04:12 wensaint

Same here

srofi avatar Dec 30 '21 20:12 srofi

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

Deep-Winter avatar Jan 04 '22 11:01 Deep-Winter

It's because of #315

alex-jitbit avatar Jan 05 '22 12:01 alex-jitbit

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

FMuro77 avatar Jan 10 '22 20:01 FMuro77

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

p10tyr avatar Jan 12 '22 21:01 p10tyr

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

WeamHaleemi avatar Dec 07 '22 09:12 WeamHaleemi

Dec 22 is one year anniversary of this bug xD

FMuro77 avatar Dec 07 '22 12:12 FMuro77