Reference a locally built and signed version of System.Web.Razor.dll - it's a .NET 4.5 dll so also had to upgrade all projects using it