static void CreateScriptBundle(string bundleName)
 {
     if (String.IsNullOrWhiteSpace(bundleName))
     {
         BundleTable.Bundles.Add(new ScriptBundle("~/Scripts/AjaxControlToolkit/Bundle", Constants.CdnPrefix + "Scripts/AjaxControlToolkit/Bundle.js")
                                 .Include(ToolkitResourceManager.GetScriptPaths()));
     }
     else
     {
         BundleTable.Bundles.Add(new ScriptBundle("~/Scripts/AjaxControlToolkit/" + bundleName + "Bundle")
                                 .Include(ToolkitResourceManager.GetScriptPaths(bundleName)));
     }
 }
        static void Main(string[] args)
        {
            var scriptBundle = new ScriptBundle("~/ScriptsBundle").Include(ToolkitResourceManager.GetScriptPaths());
            var styleBundle  = new StyleBundle("~/StylesBundle").Include(ToolkitResourceManager.GetStylePaths());

            BundleTable.VirtualPathProvider = new VirtualPathProviderImpl();
            BundleTable.Bundles.Add(scriptBundle);
            BundleTable.Bundles.Add(styleBundle);

            var context = new BundleContext(CreateHttpContext(), BundleTable.Bundles, String.Empty);

            File.WriteAllText("../AjaxControlToolkit.StaticResources/Scripts/Bundle.js", scriptBundle.GenerateBundleResponse(context).Content);
            File.WriteAllText("../AjaxControlToolkit.StaticResources/Styles/Bundle.css", styleBundle.GenerateBundleResponse(context).Content);
        }