Add method

The BundleCollection.Add method adds a bundle to the collection. You must provide a type of bundle and file system path.


The allowed bundle types are:

  • Cassette.Scripts.ScriptBundle
  • Cassette.Stylesheets.StylesheetBundle
  • Cassette.HtmlTemplates.HtmlTemplateBundle

The bundle path is relative to the web application's root directory.

When the path is a directory, Cassette uses a FileSearch to find the files to include in the bundle.