Documentation

Using Cassette in .NET 3.5

Make sure to use the Cassette.Aspnet.Fx35 Nuget package.

MVC 2 & Web Forms

For Web Forms, the instructions remain the same.

For MVC2, you must remove the system.web.webPages.razor section from your ~/Views/web.config file after installing Cassette.Views.

You can follow the same instructions for getting started with MVC 3 and Web Forms. Here is an example using MVC 2's ASPX syntax (in a Site.master page):

<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %>
<%
    Bundles.Reference("scripts/lib/jquery.js");
    Bundles.Reference("scripts/app/home.js");
%>
<!DOCTYPE html>
<html>
<head>
    <title>Web App</title>
    <%= Bundles.RenderStylesheets() %>
</head>
<body>
    ...
    <%= Bundles.RenderScripts() %>
</body>
</html>