codebude / QRCoder

A pure C# Open Source QR Code implementation
MIT License
4.59k stars 1.09k forks source link

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

Open mkavici opened 2 years ago

mkavici commented 2 years ago

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

wensaint commented 2 years ago

run into the same error...

srofi commented 2 years ago

Same here

Deep-Winter commented 2 years ago

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 commented 2 years ago

It's because of #315

FMuro77 commented 2 years ago

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

p10tyr commented 2 years ago

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 commented 1 year ago

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

FMuro77 commented 1 year ago

Dec 22 is one year anniversary of this bug xD