[英]System.Web.Http reference version reducing from v5.2.3.0 to v5.1.0.0 after installing fluentvalidation.webapi
I want to install fluentvalidation.webapi package in my webApi project. 我想在我的webApi项目中安装fluentvalidation.webapi软件包。 When i install this package through nuget, i notice a strange thing that it reduces the version of my system.web.http reference.
当我通过nuget安装此软件包时,我注意到一个奇怪的事情,它降低了system.web.http参考的版本。
System.Web.Http reference version before fluentvalidation.webapi package installation: version 5.2.3.0 fluentvalidation.webapi软件包安装之前的System.Web.Http参考版本:版本5.2.3.0
System.Web.Http reference version after fluentvalidation.webapi package installation: version 5.1.0.0 fluentvalidation.webapi软件包安装后的System.Web.Http参考版本:版本5.1.0.0
Can anyone tell me reason for this? 有人可以告诉我原因吗? this further gives me other issues like Getting Microsoft.AspNet.WebApi.Cors version issue in WebAPI
这进一步给了我其他问题,例如在WebAPI中获取Microsoft.AspNet.WebApi.Cors版本问题
Try upgrading System.Web.Http to latest version after installing fluentvalidation.webapi. 安装fluentvalidation.webapi后,尝试将System.Web.Http升级到最新版本。 If the dependant library uses specific version of System.Web.Http library, you can specify binding redirect in your web.config, which would basically instruct the app to use most recent version of the library.
如果从属库使用System.Web.Http库的特定版本,则可以在web.config中指定绑定重定向,这基本上会指示应用程序使用该库的最新版本。 For documentation on setting binding redirects, please, see https://msdn.microsoft.com/en-us/library/twy1dw1e(v=vs.110).aspx
有关设置绑定重定向的文档,请参见https://msdn.microsoft.com/zh-cn/library/twy1dw1e(v=vs.110).aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.