QRCoder icon indicating copy to clipboard operation
QRCoder copied to clipboard

`QRCode` is not found in .NET 7

Open edgarhd opened this issue 3 years ago • 7 comments

I just upgraded my project to .NET 7 and this is not working, QRCode is not found. When is this going to be compatible with .NET 7 ?

Thanks !

edgarhd avatar Dec 05 '22 22:12 edgarhd

Same problem here in version 1.4.3, downgrading to 1.4.2 solve for me.

guifurlan89 avatar Dec 08 '22 19:12 guifurlan89

Same issue when using with .Net 6 version 1.4.3 works fine with .Net 5, after upgrade to .Net 6 I needed to downgrade to 1.4.2 The issue is related to https://github.com/codebude/QRCoder/blob/master/QRCoder/QRCode.cs#L9 which makes it .Net 6 windows only. Be good to know why?

simonpinn avatar Dec 13 '22 01:12 simonpinn

still not found with .NET 7

GeeSuth avatar Jan 27 '23 22:01 GeeSuth

Same issue when using with .Net 6 version 1.4.3 works fine with .Net 5, after upgrade to .Net 6 I needed to downgrade to 1.4.2 The issue is related to https://github.com/codebude/QRCoder/blob/master/QRCoder/QRCode.cs#L9 which makes it .Net 6 windows only. Be good to know why?

System.Drawing is depreciated starting .NET 6 A reimplementation with a open source alternative is necessary. A PR using SkiaSharp exists but I don't know if it is going to be merged any time soon

Eaglenait avatar Feb 03 '23 08:02 Eaglenait

Same issue when using with .Net 6 version 1.4.3 works fine with .Net 5, after upgrade to .Net 6 I needed to downgrade to 1.4.2 The issue is related to https://github.com/codebude/QRCoder/blob/master/QRCoder/QRCode.cs#L9 which makes it .Net 6 windows only. Be good to know why?

See: https://github.com/codebude/QRCoder/issues/361#issuecomment-992152570

ThaDaVos avatar Feb 17 '23 07:02 ThaDaVos

See my solution: #450 (comment)

lqlam avatar Apr 25 '23 01:04 lqlam

On NET6 I had this problem. In project settings, I changed Target OS from None to Windows and the error went away.

sjc57 avatar Oct 31 '23 13:10 sjc57