TimothyMeadows / reCAPTCHA.AspNetCore

Google reCAPTCHA v2/v3 for .NET Core 3.x
MIT License
144 stars 51 forks source link

Usage with .Net Framework 4.8 #98

Closed manzanotti closed 1 week ago

manzanotti commented 2 years ago

Apologies in advance if I'm just being dim here (it's been that kind of a day already)...

I'm attempting to add v2.2.5 to a .Net Framework 4.8 project. However, the Validate method on the RecaptchaService takes a Microsoft.AspNetCore.Http.HttpRequest object, but my controller Request is of type System.Web.HttpRequestBase.

I've looked to see if there's any way of converting from one to the other, but I can only find things for converting the other way (such as the Web Api Compatibility Shim package).

So, what am I missing to get this working?

TimothyMeadows commented 1 week ago

This project only supports .net core, and .net 4.5. .net 8 support will be added in the near future