I attempted to customize the sorting of my script bundle following the instructions provided at:
However, I encountered the following error during project build:
Error 1 'Namespace.AsIsBundleOrderer' does not fulfill the interface requirement 'System.Web.Optimization.IBundleOrderer.OrderFiles(System.Web.Optimization.BundleContext, System.Collections.Generic.IEnumerable)'
public class AsIsBundleOrderer : IBundleOrderer
{
public virtual IEnumerable<FileInfo> OrderFiles(BundleContext context, IEnumerable<FileInfo> files)
{
return files;
}
}
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
var bundle = new ScriptBundle("~/bundles/js").Include(
"~/Scripts/jquery.min.js",
// list of scripts continues...
"~/Scripts/float.settings.infobox.js"
);
bundle.Orderer = new AsIsBundleOrderer();
bundles.Add(bundle);