This project is read-only.


Add Absolute Path or Custom Virtual Path Support to Bundle.Include


We have multiple projects connected to an mvc website. The website uses javascript files from other projects with absolute path. We wanted to use Bundle, so I've started to implement this scenario with Bundle class. But at first, I confronted with a problem that is the Bundle class doesn't support absolute paths. So I've decided to use a custom virtual path to use absolute paths. I've solved this problem with a lot of implementation. Now there is a custom VirtualPathProvider to get files info and also there is a controller to read the script files. So now, I can add virtual paths like "~/ModuleScripts/ModlueName/ScriptFile.js" to Bundle class.
But this implementation is so fragile and Bundle class should support absolute paths. Or we should able to introduce a custom virtual path which is binded to an absolute path.

Best Regards.
Closed Apr 17, 2013 at 10:29 PM by


oruchreis wrote Apr 18, 2013 at 7:33 AM

file path with virtual path. And you are right about duplication of that issue that is what I've expected.

abatishchev wrote Jun 19, 2015 at 11:42 PM

82 is closed as duplicated of #12, the later doesn't exist anymore. What to do now? What's the status?