Asp.net mvc 4 breezejs:缩小脚本时出错

Asp.net mvc 4 breezejs:缩小脚本时出错,asp.net-mvc-4,breeze,bundling-and-minification,Asp.net Mvc 4,Breeze,Bundling And Minification,缩小breezejs时,我面临一个问题: Error : Cannot get property « Validator » of a null reference (that's not the exact message but a translation of the original.) 当我尝试调用breeze.Validator时,就会发生这种情况,这意味着breeze是未定义的 现在,我依靠ASP.NET MVC绑定机制来缩小文件breeze.debug.js以及应用程序中的

缩小breezejs时,我面临一个问题:

Error : Cannot get property « Validator » of a null reference  
(that's not the exact message but a translation of the original.)
当我尝试调用breeze.Validator时,就会发生这种情况,这意味着breeze是未定义的

现在,我依靠ASP.NET MVC绑定机制来缩小文件breeze.debug.js以及应用程序中的所有其他脚本

但是,如果我没有使用breeze.debug.js,而是使用breeze.min.js(由breeze团队提供的),那么它可以正常工作


这个问题的原因可能是什么

我在发布模式下忽略了breeze.debug.js文件,在调试模式下忽略了breeze.min.js文件,从而解决了这个问题:

bundles.IgnoreList.Ignore("*.debug.js", OptimizationMode.WhenEnabled);
        bundles.IgnoreList.Ignore("*.min.js", OptimizationMode.WhenDisabled);

        bundles.Add(new ScriptBundle("~/bundles/breeze").Include("~/scripts/libs/breeze/breeze.debug.js")
            .Include("~/scripts/libs/breeze/breeze.min.js"));

我在发布模式下忽略了breeze.debug.js文件,在调试模式下忽略了breeze.min.js文件,从而解决了这个问题:

bundles.IgnoreList.Ignore("*.debug.js", OptimizationMode.WhenEnabled);
        bundles.IgnoreList.Ignore("*.min.js", OptimizationMode.WhenDisabled);

        bundles.Add(new ScriptBundle("~/bundles/breeze").Include("~/scripts/libs/breeze/breeze.debug.js")
            .Include("~/scripts/libs/breeze/breeze.min.js"));

这还没有解决,我可以用最新版本的breeze复制它。知道怎么回事吗?这个问题还没有解决,我可以用最新版本的breeze复制它。知道怎么了吗?