简体   繁体   English

安装fluentvalidation.webapi后,System.Web.Http参考版本从v5.2.3.0降低到v5.1.0.0

[英]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.

相关问题 类型'ApiController'同时存在于'System.Web.Http,Version = 4.0.0.0'和'System.Web.Http,Version = 5.2.3.0'中 - The type 'ApiController' exists in both 'System.Web.Http, Version=4.0.0.0' and 'System.Web.Http, Version=5.2.3.0' 在没有nuget软件包管理器的情况下安装fluentvalidation.webapi? - Installing fluentvalidation.webapi without nuget package manager? 在哪里可以找到用于升级到System.Web.Http v5.0.0.0的NuGet包? - Where can I find a NuGet package for upgrading to System.Web.Http v5.0.0.0? 无论如何尝试,System.Web.Http参考默认为4.0版本 - System.Web.Http reference defaults to 4.0 version no matter how I try 天蓝色错误部署无法解析此参考。 无法找到程序集System.Web.Http,版本= 4.0.0.0 - Deploying in azure error Could not resolve this reference. Could not locate the assembly System.Web.Http, Version=4.0.0.0 从vs2013升级到vs2017后无法加载文件或程序集'System.Web.Http,Version = 4.0.0.0' - Could not load file or assembly 'System.Web.Http, Version=4.0.0.0' after upgrading from vs2013 to vs2017 无法使用 System.Web.Http 加载文件或程序集,版本 = 4.0.0.0 - Cannot load file or assembly with System.Web.Http, Version=4.0.0.0 使用System.Web.Http的引用不起作用? (使用.net 4.5) - Reference using System.Web.Http is not working? (using .net 4.5) 在控制台应用程序中添加对System.Web.Http的引用 - Adding a reference to System.Web.Http in a Console application 无法加载文件或程序集'System.Web.Http,Version = 5.2.2.0 - Could not load file or assembly 'System.Web.Http, Version=5.2.2.0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM