I have multiple js input files. How can I make the Microsoft Ajax Minifier (using AjaxMinTask.dll) combine them into a single minified js file?
Asked
Active
Viewed 306 times
2 Answers
1
Instead of using the JsSourceExtensionPattern/JsTargetExtension pair, use the JsCombinedFileName property (and the corresponding equivalents for CSS). If the JsCombinedFileName property is set, it will combine all the input JS files into the path specified by the property, rather than minifying each file separately.

Ron Logan
- 407
- 5
- 5
0
I solved it by doing this:
<Exec Command="echo y| type %(SourceFiles.Identity) >> $(ScriptOutputPath)\$(RootNamespace).debug.js" />

Michael Myers
- 188,989
- 46
- 291
- 292

eNepper
- 1,889
- 2
- 13
- 12