Csla.Web.Mvc4.dll references System.Web.Mvc version

Csla.Web.Mvc4.dll references System.Web.Mvc version

Old forum URL: forums.lhotka.net/forums/t/12350.aspx

pcanada posted on Friday, February 07, 2014

After adding the latest nuget package (v 4.5.501) for Csla.Web.Mvc4 I get the following exception when building.

"\src\packages\CSLA-ASP.NET-MVC4.4.5.501\lib\net45\Csla.Web.Mvc4.dll : error CS1705: Assembly 'Csla.Web.Mvc4, Version=4.5.501.0, Culture=neutral, PublicKeyToken=93be5fdc093e4c30' uses 'System.Web.Mvc, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35'"


I took a look in the packages folder and it seems the net40\csla.web.mvc4.dll references system.web.mvc v4.0, however, net45\csla.web.mvc4.dll references system.web.mvc v5.0.


This must be a mistake since this library should be targetting mvc4 even on .net 4.5. For now I have reverted back to 4.5.40.

JonnyBee replied on Tuesday, February 11, 2014


Added issue in repository: https://github.com/MarimerLLC/csla/issues/258  

Thanks for reporting. 

Copyright (c) Marimer LLC