Comments (5)
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.
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.
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.
@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.
Thanks. It builds and runs with FV11, and I believe it is working as expected!
from mediatr.extensions.fluentvalidation.aspnetcore.
Related Issues (12)
- Error: MissingMethodException HOT 1
- AddFluentValidation breaks with MediatR 10 HOT 2
- RuleSet HOT 1
- Run validation in an async context to allow async rules in FluentValidation v11 HOT 3
- Does not work for IRequest (Mediatr 12) HOT 1
- Missing the parameter "includeInternalTypes" HOT 1
- The nuget is created in wrong way. HOT 8
- Update to fluentvalidation 9.3.0.preview 2 HOT 5
- RuleForEach(x => x.items).SetValidator(new ItemValidator()) not validating HOT 1
- Solution version 1.1.1 is not compatible with FluentValidation 10.1.0 version HOT 3
- Returning errors instead of throwing? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mediatr.extensions.fluentvalidation.aspnetcore.