简体   繁体   English

Squishit继续寻找AjaxMin版本4.48.4489.28432

[英]Squishit keeps looking for AjaxMin version 4.48.4489.28432

I have installed squishit version 0.9.8.2 with Ajaxmin 4.96.4941. 我已经使用Ajaxmin 4.96.4941安装了squishit版本0.9.8.2。 The problem is that when I run the ASP.net site I get error 问题是,当我运行ASP.net网站时,我收到错误

[FileLoadException: Could not load file or assembly 'AjaxMin, Version=4.48.4489.28432, Culture=neutral, PublicKeyToken=21ef50ce11b5d80f' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]

SquishIt.Framework.Minifiers.JavaScript.MsMinifier.Minify(String content) in c:\\dev\\urandom\\SquishIt\\SquishIt.Framework\\Minifiers\\JavaScript\\MsMinifier.cs:31 SquishIt.Framework.Base.BundleBase 1.MinifyIfNeeded(String content, Boolean minify) in c:\\dev\\urandom\\SquishIt\\SquishIt.Framework\\Base\\BundleBase.Rendering.Internals.cs:340 System.Linq.WhereSelectArrayIterator 2.MoveNext() +110 System.Linq.d__16 2.MoveNext() +348 System.Collections.Generic.List 1..ctor(IEnumerable 1 collection) +476 System.Linq.Enumerable.ToList(IEnumerable 1 source) +69 SquishIt.Framework.JavaScript.JavaScriptBundle.AggregateContent(List 1 assets, StringBuilder sb, String outputFile) in c:\\dev\\urandom\\SquishIt\\SquishIt.Framework\\JavaScript\\JavaScriptBundle.cs:84 SquishIt.Framework.Base.BundleBase 1.GetMinifiedContent(List 1 assets, String outputFile) in c:\\dev\\urandom\\SquishIt\\SquishIt.Framework\\Base\\BundleBase.Rendering.Internals.cs:333 SquishIt.Framework.Base.BundleBase 1.RenderRelease(String key, String render SquishIt.Framework.Minifiers.JavaScript.MsMinifier.Minify(字符串内容)在c:\\ dev \\ urandom \\ SquishIt \\ SquishIt.Framework \\ Minifiers \\ JavaScript \\ MsMinifier.cs:31 SquishIt.Framework.Base.BundleBase 1.MinifyIfNeeded(String content, Boolean minify) in c:\\dev\\urandom\\SquishIt\\SquishIt.Framework\\Base\\BundleBase.Rendering.Internals.cs:340 System.Linq.WhereSelectArrayIterator 2.MoveNext()+110 System.Linq.d__16 2.MoveNext() +348 System.Collections.Generic.List 1..ctor(IEnumerable 1 collection) +476 System.Linq.Enumerable.ToList(IEnumerable 1 source)+69 SquishIt.Framework.JavaScript.JavaScriptBundle.AggregateContent(List 1 assets, StringBuilder sb, String outputFile) in c:\\dev\\urandom\\SquishIt\\SquishIt.Framework\\JavaScript\\JavaScriptBundle.cs:84 SquishIt.Framework.Base.BundleBase 1.GetMinifiedContent(List 1 assets, String outputFile) in c:\\dev\\urandom\\SquishIt\\SquishIt.Framework\\Base\\BundleBase.Rendering.Internals.cs:333 SquishIt.Framework.Base.BundleBase 1.RenderRelease(字符串键,字符串渲染 To, IRenderer renderer) in c:\\dev\\urandom\\SquishIt\\SquishIt.Framework\\Base\\BundleBase.Rendering.Internals.cs:290 To,IRenderer renderer)在c:\\ dev \\ urandom \\ SquishIt \\ SquishIt.Framework \\ Base \\ BundleBase.Rendering.Internals.cs:290

I think there was a problem with 4.96 at some point but don't remember exactly what. 我认为4.96在某些时候存在问题,但不记得到底是什么。 Have you tried adding a binding redirect? 您是否尝试过添加绑定重定向?

I'd recommend updating to 4.97.4951.28483 (or using the YUI minifier). 我建议更新到4.97.4951.28483(或使用YUI minifier)。

For the latter, somewhere in global.asax.cs (before you do any bundle rendering) 对于后者,位于global.asax.cs中的某个位置(在进行任何包渲染之前)

Bundle.ConfigureDefaults().UseYuiForJsMinification()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM