AjaxMin4 Error with Visual Studio 2010 RC?

When I compile my solution, I get 2 errors that I did not get with AjaxMin version 1.1.

SourceFiles is not supported by the AjaxMin task. Ensure that the parameter exists in the task, and that it is a public instance custom object.

The AjaxMin task cannot be initialized using input parameters.

If I reinstall AjaxMin4, then restart VS, it will work again until I restart the computer.

Is this a known issue and is there a fix?

+3
source share
1 answer

Just use the key name JsSourceFiles instead of SourceFiles.

In general, try something like this:

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

Source: https://habr.com/ru/post/1739200/


All Articles