andrewdavey/cassette — Issue #199: For ASP.NET Web Pages
Author: rojorojo
Created: 2012-02-28 17:26:48+00:00
State: open

I am posting here because this info is missing from the documentation.

To get ASP.NET webpages to run, in addition to what Cassette automatically does to the Views folder, you will need to add the following section to the web.config (in the views folder)

Also, in the pages element under the system.web.webPages.razor section you will need to add the following property

pageBaseType="System.Web.Mvc.WebViewPage"

Everything should look like this...

Finally a using statement should be added to the top of _SiteLayout.cshtml like so

@using Cassette.Views;