var jsBundle = new Bundle("~/bundles/js"); jsBundle.IncludeDirectory("~/Scripts/", "*.js", true);
var cssBundle = new Bundle("~/bundles/css"); cssBundle.IncludeDirectory("~/Content/", "*.css", true);In this example, the first parameter of the Bundle constructor specifies the path and name of the bundle. The second parameter of IncludeDirectory is the path of the directory you want to add files from, the third parameter is the file extension you want to include, and the fourth parameter is a boolean that indicates whether to include subdirectories. The package library that the Bundle class belongs to is System.Web.Optimization.