Geta / geta-notfoundhandler

The popular NotFound handler for ASP.NET Core and Optimizely, enabling better control over your 404 page in addition to allowing redirects for old URLs that no longer works.
Apache License 2.0
19 stars 16 forks source link

Configure methods missing in 2.0.0 #29

Closed AlexanderCarlstrom closed 2 years ago

AlexanderCarlstrom commented 2 years ago

I just installed Geta.NotFoundHandler.Optimizely version 2.0.0. I tried following the configuration guide but AddNotFoundHandler and AddOptimizelyNotFoundHandler methods are not available in this new version. If I downgrade to 1.1.1 I am able to access the methods and therefor add it to the cms.

marisks commented 2 years ago

There are these methods. Are you importing the right namespace?

palle-mertz-isobar commented 2 years ago

I think some namespace refactoring has been done?

I guess it is ok for version 2 ... but I would say moving namespaces is a breaking change and should not have been allowed for 1.0.4

AlexanderCarlstrom commented 2 years ago

Hi. Yeah, seems to be some issue with the using statements and namespaces. image image

valdisiljuconoks commented 2 years ago

Which runtime your project is targeting?

AlexanderCarlstrom commented 2 years ago

.net 5.0 if that's what you meant

marisks commented 2 years ago

To use 2.0.0, you need .NET 6

AlexanderCarlstrom commented 2 years ago

Ahh, I see. Thank you