I am using the Telerik MVC Extensions and have moved my Scripts folder in to the Content folder. So instead of …
<script src="<%= Url.Content("~/Scripts/jquery-1.4.1.min.js") %>" type="text/javascript"></script>
… I now have …
<script src="<%= Url.Content("~/Content/Scripts/jquery-1.4.1.min.js") %>" type="text/javascript"></script>
I realise that I can turn off jQuery inclusion with the ScriptRegistrar().jQuery(false) method, but how to I tell the Telerik MVC Extensions where the new “base” folder is?
You cannot set a base folder through the API, you either follow the MVC convention or you insert your scripts manually. You can, of course, edit the code of the extensions and modify the places where the
ScriptRegistrarlooks for them, in theWebAssetDefaultSettingsclass.That said, do you really need the scripts in the Content folder?