Hi,
I'm developping an ASP.NET MVC application using Kendo UI v2014.1.415. Some of the Kendo controls are not rendering properly in Release mode. I check the the css bundle I found the following :
/* Minification failed. Returning unminified contents.
(27,35175): run-time error CSS1030: Expected identifier, found '.'
(27,35182): run-time error CSS1031: Expected selector, found ')'
(27,35182): run-time error CSS1025: Expected comma or open brace, found ')'
*/
Here is the code from my bundle config :
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"));
//Kendo UI - Begin
const string VersionKendo = "2014.1.415";
const string KendoScriptFolder = "~/Scripts/kendo/" + VersionKendo + "/";
const string KendoCssFolder = "~/Content/kendo/" + VersionKendo + "/";
bundles.Add(new ScriptBundle("~/bundles/kendo").Include(
KendoScriptFolder + "kendo.all.min.js",
KendoScriptFolder + "cultures/kendo.culture.en-US.min.js",
KendoScriptFolder + "cultures/kendo.culture.fr-FR.min.js",
KendoScriptFolder + "kendo.aspnetmvc.min.js"
));
bundles.Add(new StyleBundle("~/Content/kendo/css").Include(
KendoCssFolder + "kendo.common.min.css",
KendoCssFolder + "kendo.metro.min.css",
KendoCssFolder + "kendo.default.mobile.min.css"));
// Clear all items from the default ignore list to allow minified CSS and JavaScript files to be included in debug mode
bundles.IgnoreList.Clear();
// Add back the default ignore list rules sans the ones which affect minified files and debug mode
bundles.IgnoreList.Ignore("*.intellisense.js");
bundles.IgnoreList.Ignore("*-vsdoc.js");
bundles.IgnoreList.Ignore("*.debug.js", OptimizationMode.WhenEnabled);
//Kendo UI - End
BundleTable.EnableOptimizations = true;
How can I fix this?
I'm developping an ASP.NET MVC application using Kendo UI v2014.1.415. Some of the Kendo controls are not rendering properly in Release mode. I check the the css bundle I found the following :
/* Minification failed. Returning unminified contents.
(27,35175): run-time error CSS1030: Expected identifier, found '.'
(27,35182): run-time error CSS1031: Expected selector, found ')'
(27,35182): run-time error CSS1025: Expected comma or open brace, found ')'
*/
Here is the code from my bundle config :
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"));
//Kendo UI - Begin
const string VersionKendo = "2014.1.415";
const string KendoScriptFolder = "~/Scripts/kendo/" + VersionKendo + "/";
const string KendoCssFolder = "~/Content/kendo/" + VersionKendo + "/";
bundles.Add(new ScriptBundle("~/bundles/kendo").Include(
KendoScriptFolder + "kendo.all.min.js",
KendoScriptFolder + "cultures/kendo.culture.en-US.min.js",
KendoScriptFolder + "cultures/kendo.culture.fr-FR.min.js",
KendoScriptFolder + "kendo.aspnetmvc.min.js"
));
bundles.Add(new StyleBundle("~/Content/kendo/css").Include(
KendoCssFolder + "kendo.common.min.css",
KendoCssFolder + "kendo.metro.min.css",
KendoCssFolder + "kendo.default.mobile.min.css"));
// Clear all items from the default ignore list to allow minified CSS and JavaScript files to be included in debug mode
bundles.IgnoreList.Clear();
// Add back the default ignore list rules sans the ones which affect minified files and debug mode
bundles.IgnoreList.Ignore("*.intellisense.js");
bundles.IgnoreList.Ignore("*-vsdoc.js");
bundles.IgnoreList.Ignore("*.debug.js", OptimizationMode.WhenEnabled);
//Kendo UI - End
BundleTable.EnableOptimizations = true;
How can I fix this?