ASP.Net MVC 5 sub-directory bundling issues
问题 I am seeing a weird behavior with bundling in my ASP.Net MVC 5 project. My project works just fine when I explicitly declare all the files in my BundleConfig.cs file as follows: bundles.Add(new ScriptBundle("~/bundles/app").Include( "~/app/app.js", "~/app/config.js", "~/app/dir1/file1.js", "~/app/dir1/subdir1/file2.js", ..... However, if I switch to use IncludeDirectory instead, the script paths during development ( BundleTable.EnableOptimizations = false ) are not complete. This is what I