gpt4 book ai didi

javascript - 在不安装的情况下使用 AjaxMin

转载 作者:行者123 更新时间:2023-11-28 13:24:29 24 4
gpt4 key购买 nike

我想在不安装 AjaxMin 的情况下使用它。从这个链接 ( http://ajaxmin.codeplex.com/wikipage?title=AjaxMinTask ) 我认为 UsingTask 标签可以让我这样做,但我不断收到这个错误:

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.

我也试过这个(Could not load file or assembly App_Licenses),但还是不行。有什么想法吗?

最佳答案

仅供引用 - 添加 dll 作为引用无效。我们最终将 AjaxMin dll 和 exe 添加到存储库,创建了一个 manifest.xml,然后添加以下内容作为预构建步骤:

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

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

关于javascript - 在不安装的情况下使用 AjaxMin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14405508/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com