__RazorGenerator does not currently support MVC versions > 5.0 (i.e. 5.1 and 5.2)__
In environments such as build servers, where Visual Studio is not installed, projects utilizing the latest version of RazorGenerator and MVC versions > 5.0 will not be able to build unless version 5.0 of the System.Web.MVC assembly is manually loaded in to the GAC on the build server.
Since Visual Studio (2013 anyways) registers MVC 5.0 assemblies in the GAC, this is not an issue on machines where Visual Studio is installed. In production environments, this is also typically a non-issue, as binding redirection will make sure that the correct version of System.Web.MVC is referenced at runtime, even if 5.0 is referenced.
Comments: Hi David, I just started exploring RazorGenerator.MVC and RazorGenerator.MsBuild 2.3.0 option for our site that we are trying to convert to MVC. We are using .Net Framework 4.5.2 and corresponding MVC - 5.2.2.0 (System.Web.MVC.dll) I found the issue by debugging that the RazorGenerator.MsBuild package __missing__ required System.Web.Mvc.dll under RazorGenerator.MsBuild.2.3.0\tools\v3. It requires only specific version of that dll (5.0.0). Using higher version doesn't work either. Can you please update the Nuget package accordingly. Please let me know if more information needed.
In environments such as build servers, where Visual Studio is not installed, projects utilizing the latest version of RazorGenerator and MVC versions > 5.0 will not be able to build unless version 5.0 of the System.Web.MVC assembly is manually loaded in to the GAC on the build server.
Since Visual Studio (2013 anyways) registers MVC 5.0 assemblies in the GAC, this is not an issue on machines where Visual Studio is installed. In production environments, this is also typically a non-issue, as binding redirection will make sure that the correct version of System.Web.MVC is referenced at runtime, even if 5.0 is referenced.
Comments: Hi David, I just started exploring RazorGenerator.MVC and RazorGenerator.MsBuild 2.3.0 option for our site that we are trying to convert to MVC. We are using .Net Framework 4.5.2 and corresponding MVC - 5.2.2.0 (System.Web.MVC.dll) I found the issue by debugging that the RazorGenerator.MsBuild package __missing__ required System.Web.Mvc.dll under RazorGenerator.MsBuild.2.3.0\tools\v3. It requires only specific version of that dll (5.0.0). Using higher version doesn't work either. Can you please update the Nuget package accordingly. Please let me know if more information needed.