Visual Studio 2010 RC 中的 AjaxMin4 错误?

发布于 2024-08-27 00:15:01 字数 236 浏览 4 评论 0原文

当我编译我的解决方案时,我遇到了 2 个错误,这是 AjaxMin 1.1 版本中没有出现的错误。

“AjaxMin”任务不支持“SourceFiles”参数。验证该参数存在于任务中,并且它是可设置的公共实例属性。

无法使用其输入参数初始化“AjaxMin”任务。

如果我重新安装 AjaxMin4,然后重新加载 VS,它会再次工作,直到我重新启动 PC。

这是一个已知问题并且有解决办法吗?

When I compile my solution I get 2 errors which I did not get with version of 1.1 of AjaxMin.

The "SourceFiles" parameter is not supported by the "AjaxMin" task. Verify the parameter exists on the task, and it is a settable public instance property.

The "AjaxMin" task could not be initialized with its input parameters.

If I re-install AjaxMin4 then reload VS it works again until I reboot the PC.

Is this a known issue and is there a fix?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

波浪屿的海角声 2024-09-03 00:15:01

只需使用 JsSourceFiles 键名称而不是 SourceFiles。

一般来说,尝试这样的事情:

<AjaxMin  JsSourceFiles="@(JsFilesDevelopment)" 
          JsSourceExtensionPattern="\.js$" 
          JsTargetExtension=".js" 
          CssSourceFiles="@(CssFilesDevelopment)"
          CssSourceExtensionPattern="\.css$"
          CssTargetExtension=".css"/>

Just use JsSourceFiles key name instead of SourceFiles.

In general try something like this:

<AjaxMin  JsSourceFiles="@(JsFilesDevelopment)" 
          JsSourceExtensionPattern="\.js$" 
          JsTargetExtension=".js" 
          CssSourceFiles="@(CssFilesDevelopment)"
          CssSourceExtensionPattern="\.css$"
          CssTargetExtension=".css"/>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文