Does any of you know why the Script.Render is not disabling the bundle for compilation debug ="true" when the bundle path is not relative to the root folder ?
I am creating the bundle using a relative path to the root like (this path type is mandatory, otherwise an exception will be thrown):
Bundle jsBundle = new ScriptBundle("~/bundles/myscripts/");
But when I try to render it I need to provide the full url like below:
Scripts.Render("http://myserver/bundles/myscripts/")
And the bundle is enabled irrespective of compilation debug mode.
Any ideas what I am missing?
My question is very related to this question - I am rendering my bundle that way - now: how can I make it disabled when compilation debug="true" ?
Any ideas ?
Thanks! Ovi