Git Product home page Git Product logo

Comments (5)

GetoXs avatar GetoXs commented on June 14, 2024

Hi @mchaseleaf what version of MediatR.Extensions.FluentValidation.AspNetCore do you use?
I have tested last version 2.0.0 with FluentValidation v.11 and everything works.
Please keep in mind that I've released new version on January to be valid with v.10. Isuee: #11

from mediatr.extensions.fluentvalidation.aspnetcore.

JeremySkinner avatar JeremySkinner commented on June 14, 2024

For some additional context this is because of this line: https://github.com/GetoXs/MediatR.Extensions.FluentValidation.AspNetCore/blob/master/src/MediatR.Extensions.FluentValidation.AspNetCore/ServiceCollectionExtensions.cs#L20

...we added some optional parameters to this method in v11 which are a binary breaking change meaning you can't just swap out the FV10 binaries for FV11, and requires a recompile or you'll get missing method exceptions like this. I'd generally recommend adding an upper-version constraint to your dependency too, as otherwise Nuget will silently allow upgrades across major version boundaries (even though this isn't correct from a SemVer perspective).

from mediatr.extensions.fluentvalidation.aspnetcore.

mchaseleaf avatar mchaseleaf commented on June 14, 2024

I have MediatR 10.0.1, MediatR.Extensions.Microsoft.DependencyInjection 10.0.1, and MediatR.Extensions.FluentValidation.AspNetCore 2.0.0. This is in .NET 6.0 also, if that matters.

from mediatr.extensions.fluentvalidation.aspnetcore.

GetoXs avatar GetoXs commented on June 14, 2024

@JeremySkinner thanks for detailed explanation. I have just noticed cross-version failures on CI https://github.com/GetoXs/MediatR.Extensions.FluentValidation.AspNetCore/runs/6357867530?check_suite_focus=true

@mchaseleaf I have just released version 3.0 with compatible with FV 11.x https://www.nuget.org/packages/MediatR.Extensions.FluentValidation.AspNetCore/3.0.0

from mediatr.extensions.fluentvalidation.aspnetcore.

mchaseleaf avatar mchaseleaf commented on June 14, 2024

Thanks. It builds and runs with FV11, and I believe it is working as expected!

from mediatr.extensions.fluentvalidation.aspnetcore.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.