C# 如何在MVC5项目中更新Microsoft.AspNet.webpage而不出错?

C# 如何在MVC5项目中更新Microsoft.AspNet.webpage而不出错?,c#,asp.net-mvc-5,libraries,C#,Asp.net Mvc 5,Libraries,使用VS2013,我无法更新Microsoft.AspNet.WebPages并继续得到以下错误: Updating 'Microsoft.AspNet.WebPages 2.0.20710.0' to 'Microsoft.AspNet.WebPages 3.1.1' failed. Unable to find a version of 'microsoft-web-helpers' that is compatible with 'Microsoft.AspNet.WebPages

使用
VS2013
,我无法更新
Microsoft.AspNet.WebPages
并继续得到以下错误:

 Updating 'Microsoft.AspNet.WebPages 2.0.20710.0' to
 'Microsoft.AspNet.WebPages 3.1.1' failed. Unable to find a version of
 'microsoft-web-helpers' that is compatible with
 'Microsoft.AspNet.WebPages 3.1.1'.
我尝试过卸载/安装WebApi 2、OData等。。。还看到这个


建议?

在查看时,我通过package manager控制台手动卸载了Microsoft Web Helpers(更新此网页时似乎出现了问题,然后是
Microsoft.AspNet.WebPages
。手动安装了3.1.1版本的Microsoft Web Helpers,然后是
Microsoft.AspNet.WebPages
…一切正常。

在VS 2012中,我尝试将更新应用到MVC 3时遇到了同样的问题。我遵循了#ELHaix的建议,这会让我感到满意。)在我尝试运行升级的项目时,会出现另一个错误

 Attempt by security transparent method 
 'System.Web.Mvc.PreApplicationStartCode.Start()' to access security critical 
 method 'System.Web.WebPages.PreApplicationStartCode.Start()' failed. 
在研究和试图解决这个问题时,我发现了一个NuGet软件包,它可以从V3升级到V4并解决所有问题

安装升级包MVC3TOMVC4


我在这里找到了对包的引用:

更新所有的
是否有帮助?