I have a big problem. I created an MVC 5 project and I cannot start it with default code. The problem is with the bundling. It stops in the Global.asax.cs/Application_Start
method, on the BundleConfig.RegisterBundles(BundleTable.Bundles);
line.
It says "Method not found: '!!0[] System.Array.Empty()'." (System.MissingMethodException).
Here is the BundleConfig.cs
code (default):
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery-{version}.js"));
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
"~/Scripts/jquery.validate*"));
// Use the development version of Modernizr to develop with and learn from. Then, when you're
// ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
"~/Scripts/modernizr-*"));
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
"~/Scripts/bootstrap.js",
"~/Scripts/respond.js"));
bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap.css",
"~/Content/site.css"));
}
I'm using VS 2015 Preview. What should I do/change?
Thanks!