MVC4 Bundling IncludeDirectory - Incorrect File Paths

I had a problem adding a binding to an existing project. The problem is the output path when rendering to the page. I include subdirectory directories that browse them looking for * .js as follows:

BundleTable.Bundles.Add(
    new ScriptBundle("~/ui/js")
        .IncludeDirectory("~/ui/lib/", "*.js", true)
        .IncludeDirectory("~/ui/class/", "*.js", true)
        .IncludeDirectory("~/ui/modules/", "*.js", true)
);

So, for example, under / ui / lib / I have subfolders for libraries, but what is displayed in the browser is src = "/ui/lib/file.js", when it should be / ui / lib / folder / file.js

I'm not sure where I am going wrong, I have a project that uses the same code as above, but works great for displaying the correct file paths.

This may be related, but when I switch to release mode and everything turns out concat / minified, the dynamic path also displays a 404 page.

Thank you for your help / ideas.

+4
1

, , ,

Microsoft.AspNet.Web.Optimization version 1.1.1

, "stable only" nuget " " . 1.1.0.

, , ​​ .

.

UPDATE:

, 1.1.0, 1.1.1 . , 1.1.1 ( 10/10/2013). Nuget :

Install-Package Microsoft.AspNet.Web.Optimization -Version 1.1.0

+6

All Articles