sharp architecture

Using the Razor view engine with S#arp architecture

Whilst the Sharp Architecture maintainers have little interest in Razor (see here), I have been using it recently and like the syntax. Swapping out a default project to use Razor instead of (or in addition to) the default engine isn’t too difficult. Enabling the view engine In Global.asax, find the few lines below in Application_Start(): ViewEngines.Engines.Clear(); ViewEngines.Engines.Add(new AreaViewEngine()); We need to register Razor here, by adding the line below: