Squishit 一直在寻找 AjaxMin 版本 4.48.4489.28432
Squishit keeps looking for AjaxMin version 4.48.4489.28432
我已经安装了带有 Ajaxmin 4.96.4941 的 squishit 版本 0.9.8.2。问题是当我 运行 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(字符串内容) in c:\dev\urandom\SquishIt\SquishIt.Framework\Minifiers\JavaScript\MsMinifier.cs:31
SquishIt.Framework.Base.BundleBase1.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__162.MoveNext() +348
System.Collections.Generic.List
1..ctor(IEnumerable1 collection) +476
System.Linq.Enumerable.ToList(IEnumerable
1 来源) +69
SquishIt.Framework.JavaScript.JavaScriptBundle.AggregateContent(List1 assets, StringBuilder sb, String outputFile) in c:\dev\urandom\SquishIt\SquishIt.Framework\JavaScript\JavaScriptBundle.cs:84
SquishIt.Framework.Base.BundleBase
1.GetMinifiedContent(List1 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 renderTo, IRenderer renderer) in c:\dev\urandom\SquishIt\SquishIt.Framework\Base\BundleBase.Rendering.Internals.cs:290
我认为 4.96 在某些时候有问题,但不记得具体是什么了。您是否尝试过添加绑定重定向?
我建议更新到 4.97.4951.28483(或使用 YUI 压缩器)。
对于后者,在 global.asax.cs 的某处(在您进行任何捆绑渲染之前)
Bundle.ConfigureDefaults().UseYuiForJsMinification()
我已经安装了带有 Ajaxmin 4.96.4941 的 squishit 版本 0.9.8.2。问题是当我 运行 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(字符串内容) in c:\dev\urandom\SquishIt\SquishIt.Framework\Minifiers\JavaScript\MsMinifier.cs:31
SquishIt.Framework.Base.BundleBase1.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__162.MoveNext() +348
System.Collections.Generic.List
1..ctor(IEnumerable1 collection) +476
System.Linq.Enumerable.ToList(IEnumerable
1 来源) +69
SquishIt.Framework.JavaScript.JavaScriptBundle.AggregateContent(List1 assets, StringBuilder sb, String outputFile) in c:\dev\urandom\SquishIt\SquishIt.Framework\JavaScript\JavaScriptBundle.cs:84
SquishIt.Framework.Base.BundleBase
1.GetMinifiedContent(List1 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 renderTo, IRenderer renderer) in c:\dev\urandom\SquishIt\SquishIt.Framework\Base\BundleBase.Rendering.Internals.cs:290
我认为 4.96 在某些时候有问题,但不记得具体是什么了。您是否尝试过添加绑定重定向?
我建议更新到 4.97.4951.28483(或使用 YUI 压缩器)。
对于后者,在 global.asax.cs 的某处(在您进行任何捆绑渲染之前)
Bundle.ConfigureDefaults().UseYuiForJsMinification()