0
votes

I all, I am new in blazor and I am trying to implement captcha without success, I tried different NuGet packages and I get the following error "System.Drawing.Common is not supported on this platform."(also added this NuGet package), I am using wasm .NET core 5.0 what could be the problem?

1

1 Answers

1
votes

"System.Drawing.Common" has a dependency to GDI+ and can not be used in Blazor-Wasm. But as it is using GDI+ it is preferrable to not use it at all on server/web-applications. The plan in .net (mostly 6) is to (slowly) get rid of it and use other libraries like SkiaSharp or ImageSharp.

You shoud try to use another lib.

How do you want to create the captcha? You could use Canvas to create it from scratch (Canvas Lib) or use recaptcha via JS-Interop or hcaptcha (JS-Interop)