使用AjaxMin而不安装 [英] Using AjaxMin without installing

查看:844
本文介绍了使用AjaxMin而不安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用AjaxMin而不安装它。从此链接( http://ajaxmax.codeplex.com/wikipage?title=AjaxMinTask )我认为UsingTask标签会让我这样做,但我一直得到这个错误:

I'm trying to use AjaxMin without installing it. From this link ( http://ajaxmin.codeplex.com/wikipage?title=AjaxMinTask ) I thought the UsingTask tag would let me do it, but I keep getting this error:


E:...... csproj (487):AjaxMin任务无法从E:... \libraries\AjaxMinTask.dll实例化。 System.IO.FileNotFoundException:无法加载文件或程序集AjaxMin,Version = 4.79.4762.18504,Culture = neutral,PublicKeyToken = 21ef50ce11b5d80f'或其中一个依赖项。该系统找不到指定的文件。文件名:AjaxMin,Version = 4.79.4762.18504,Culture = neutral,PublicKeyToken = 21ef50ce11b5d80f'at Microsoft.Ajax.Minifier.Tasks.AjaxMin..ctor()WRN:装配绑定日志记录关闭。要启用程序集绑定失败日志记录,请将注册表值[HKLM \Software\Microsoft\Fusion!EnableLog](DWORD)设置为1.注意:与程序集绑定失败日志记录相关联有一些性能损失。要关闭此功能,请删除注册表值[HKLM \Software \Microsoft\Fusion!EnableLog]。
E:...... Web.csproj(487):AjaxMin任务已被声明或使用不正确,或在构建期间失败。检查任务名称和程序集名称的拼写。

E:......csproj (487): The "AjaxMin" task could not be instantiated from "E:...\libraries\AjaxMinTask.dll". System.IO.FileNotFoundException: Could not load file or assembly 'AjaxMin, Version=4.79.4762.18504, Culture=neutral, PublicKeyToken=21ef50ce11b5d80f' or one of its dependencies. The system cannot find the file specified. File name: 'AjaxMin, Version=4.79.4762.18504, Culture=neutral, PublicKeyToken=21ef50ce11b5d80f' at Microsoft.Ajax.Minifier.Tasks.AjaxMin..ctor() WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. E:......Web.csproj (487): The "AjaxMin" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.

我也试过这个(无法加载文件或程序集App_Licenses ),但它仍然不工作。任何想法?

I also tried this ( Could not load file or assembly App_Licenses ), but it still doesn't work. Any ideas?

推荐答案

fyi - 添加dll作为参考没有工作。我们最终将AjaxMin dll和exes添加到存储库,创建一个manifest.xml,然后添加以下作为预构建步骤:

fyi - adding the dll as a reference did not work. we ended up adding the AjaxMin dll and exes to the repository, creating a manifest.xml, then adding the following as a pre-build step:

$(SolutionDir) \libraries\AjaxMin-clobber -xml$(ProjectDir)\AjaxMin\manifest.xml

"$(SolutionDir)\libraries\AjaxMin" -clobber -xml "$(ProjectDir)\AjaxMin\manifest.xml"

我们还将缩小的文件添加到存储库它们将被复制到发布区域。不是最优雅的解决方案,但它适用于我们的情况。

we also added the minified files to the repository so they are copied to the publish area. not the most elegant solution, but it works for our situation.

这篇关于使用AjaxMin而不安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆