1
Vote

Links namespace cannot be used in bundles

description

Hi!

I tried to be clever and us the Links namespace for creating my css and javascript bundles. The problem is that the strings that are in this namespace don't contain ~ at the start. This causes the site to fail at runtime.

Is there a way to change the strings in the Links namespace to be bundle-compatible?

Thanks,
gligoran

comments

davidebbo wrote Feb 21, 2013 at 10:21 PM

Look at ProcessVirtualPathDefault in your T4MVC.tt.hooks.t4. It deliberately avoids the ~/, so if you want it, you can just yank the VirtualPathUtility.ToAbsolute call.