相关疑难解决方法(0)

StyleBundle索引超出了数组的范围

我想在目录中包含所有文件,如下所示:

bundles.Add(new StyleBundle("~/Content/simpliq_css").Include(
    "~/Content/simpliq/*.css"
));
Run Code Online (Sandbox Code Playgroud)

但我得到了这个错误 Index was outside the bounds of the array

和红线是:

@Styles.Render("~/Content/simpliq_css")

[IndexOutOfRangeException: Index was outside the bounds of the array.]
   System.String.get_Chars(Int32 index) +0
   Microsoft.Ajax.Utilities.CssParser.Append(Object obj, TokenType tokenType) +402
   Microsoft.Ajax.Utilities.CssParser.AppendCurrent() +74
   Microsoft.Ajax.Utilities.CssParser.ParseElementName() +321
   Microsoft.Ajax.Utilities.CssParser.ParseSimpleSelector() +54
   Microsoft.Ajax.Utilities.CssParser.ParseSelector() +555
   Microsoft.Ajax.Utilities.CssParser.ParseRule() +165
   Microsoft.Ajax.Utilities.CssParser.ParseStylesheet() +186
   Microsoft.Ajax.Utilities.CssParser.Parse(String source) +946
   Microsoft.Ajax.Utilities.Minifier.MinifyStyleSheet(String source, CssSettings settings, CodeSettings scriptSettings) +439
   Microsoft.Ajax.Utilities.Minifier.MinifyStyleSheet(String source, CssSettings settings) +73
   System.Web.Optimization.CssMinify.Process(BundleContext context, BundleResponse response) +302
   System.Web.Optimization.Bundle.ApplyTransforms(BundleContext context, String bundleContent, IEnumerable`1 bundleFiles) +207
   System.Web.Optimization.Bundle.GenerateBundleResponse(BundleContext context) +355
   System.Web.Optimization.Bundle.GetBundleResponse(BundleContext context) +104
   System.Web.Optimization.BundleResolver.GetBundleContents(String virtualPath) …
Run Code Online (Sandbox Code Playgroud)

asp.net asp.net-mvc

39
推荐指数
3
解决办法
2万
查看次数

使用bootstrap 4生成错误"找不到名称'Record'"

今天,我决定将我的ASP .NET MVC 5项目从bootstrap 3迁移到bootstrap 4(sass版本).

迁移后,我在编译项目后出错了.

错误构建:找不到名称"记录".
错误构建:找不到名称'undefined'.

怎么解决这个?

visual-studio typescript

29
推荐指数
2
解决办法
2万
查看次数

标签 统计

asp.net ×1

asp.net-mvc ×1

typescript ×1

visual-studio ×1