public CustomRazorViewEngine() { string[] mastersLocation = new[] { string.Format("~/skins/{0}/views/{0}.cshtml", Utils.SkinName) }; MasterLocationFormats = CustomViewEngineHelper.AddNewLocationFormats( new List <string>(MasterLocationFormats), mastersLocation); string[] viewsLocation = new[] { string.Format("~/skins/{0}/Views/{{1}}/{{0}}.cshtml", Utils.SkinName) }; ViewLocationFormats = PartialViewLocationFormats = CustomViewEngineHelper.AddNewLocationFormats(new List <string>(ViewLocationFormats), viewsLocation); }