문제

I build my project as Debug mode that FluentValidation is a part of my library NO PROBLEM

When I build my project in debug mode all things is successful BUT when I use release mode FluentValidation Not found !!!

but when changed it to Release mode FluentValidation Not found !!! AbstractValidator not found and I get error !

The type or namespace name 'FluentValidation' could not be found (are you missing a using directive or an assembly reference?)

The type or namespace name 'AbstractValidator' could not be found (are you missing a using directive or an assembly reference?)

I dont need to know Release Vs Debug mode in General , I need to know Why FluentValidation dont Build in release mode (I want to publish my WCF Host and I have problem)

WHY ??

What is different between Release and Debug mode for using FluentValidation library ?

도움이 되었습니까?

해결책

For some reason you need to change from DeBug to Release mode and then re-install Fluent via the Package Manager Console i.e. PM> install-package FluentValidation

This worked for me anyway.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top