当我添加MvcSiteMapProvider.MVC4 System.Web.Mvc版本差异错误即将到来

时间:2014-10-22 14:19:47

标签: asp.net-mvc-4 nuget nuget-server nugetgallery

我正在使用Package Manager控制台(例如

)在我的示例站点中添加MvcSiteMapProvider
PM> Install-Package MvcSiteMapProvider.MVC4

但安装完成后面临错误。

即。

uses 'System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral

错误如下:

Error   18  Assembly 'MvcApplication1121097jhgf7621jhg9999, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' c:\Offline\MvcApplication1121097jhgf7621jhg9999\MvcApplication1121097jhgf7621jhg9999\bin\MvcApplication1121097jhgf7621jhg9999.dll   MvcApplication1121097jhgf7621jhg9999.Tests

我已将所有引用形式的配置文件更改为引用版本4.0.0.0到4.0.0.1,但即使在上面的错误即将发生之后。请帮帮我。

0 个答案:

没有答案