我定义了以下捆绑包:
var knockoutBundle = new ScriptBundle("~/bundles/knockout.js")
.Include("~/Scripts/knockout-{version}.debug.js");
但是,当应用程序与它一起发布时,debug="false"
它会生成以下 HTML
<script src="/bundles/jquery.js?v=Cr8InFU-vbrPmGYYWNIXAturiBR7q9wkkgxep6VV4EU1"></script>
<script src="/bundles/bootstrap.js?v=GTjK0zIjX1_Mx7GIKofGDUgYcnSrCJvTYHNkjkMKWC01"></script>
<script src="/bundles/knockout.js?v="></script>
并且淘汰赛的链接是空的(还要注意没有 v= 值)
如果我将调试更改为true
它会生成这个并且工作正常:
<script src="/Scripts/jquery-2.0.3.js"></script>
<script src="/Scripts/jquery.cookie.js"></script>
<script src="/Scripts/bootstrap.js"></script>
<script src="/Scripts/knockout-2.3.0.debug.js"></script>