This is what I have done so far.
bundles.Add(new ScriptBundle("~/bundles/WebformsJS").Include( "~/Scripts/WebForms/WebForms.js", "~/Scripts/WebForms/WebUIValidation.js", "~/Scripts/WebForms/MenuStandards.js", "~/Scripts/WebForms/Focus.js", "~/Scripts/WebForms/GridView.js", "~/Scripts/WebForms/DetailsView.js", "~/Scripts/WebForms/TreeView.js", "~/Scripts/WebForms/WebParts.js")); bundles.Add(new ScriptBundle("~/bundles/MsAjaxJS").Include( "~/Scripts/WebForms/MsAjax/MicrosoftAjax.js", "~/Scripts/WebForms/MsAjax/MicrosoftAjaxApplicationServices.js", "~/Scripts/WebForms/MsAjax/MicrosoftAjaxTimer.js", "~/Scripts/WebForms/MsAjax/MicrosoftAjaxWebForms.js")); bundles.Add(new ScriptBundle("~/bundles/MegaJS"). .Include("~/bundles/WebformsJS") .Include("~/bundles/MsAjaxJS"));
Then I create a MegaBundle file in Site.Master as follows:
<%: Scripts.Render("~/bundles/MegaJS") %>
The application starts without errors, but when I look at the source of the page, I see that include
<script src="/bundles/MegaJS?v="></script>
If you notice that the version is empty, and when I click on the package script its empty
My questions: 1) Is it possible to create a package from another package 2) If yes! then this is their example that I can execute.
source share