Getting Started
Using Microsoft Ajax Minifier is easy: simply specify one or more input source files on the command line, and the minified output will be sent to the STDOUT stream:
ajaxmin.exe sourcefile.js
If you’d like to automatically save the minified output to a file, use the
–out switch and specify the output path. If the file already exists, the file will not be overwritten unless the –clobber switch is used:
ajaxmin.exe sourcefile.js –out outputfile.js –clobber
If you would like to analyze your script for possible bugs, use the
-analyze option:
ajaxmin.exe sourcefile.js –analyze
Microsoft Ajax Minifier will minify both JavaScript and CSS Stylesheets, but do not mix the file types in a single instantiation. Use the
–CSS or
–JS options if the STDIN is used as input (no input files specified) or if the input files don’t have the standard .JS or .CSS file extensions.
To combine multiple input files into a single output file, simply specify
multiple input files on the command-line:
ajaxmin.exe source1.js source2.js source3.js –out outputfile.js
More Information:
After running the MSI, the installed files will be:
<programfiles>\Microsoft\Microsoft Ajax Minifier
AjaxMin.exe
AjaxMinifier.exe
AjaxMinCommandPrompt.bat
AjaxMinCommandPromptVars.bat
<programfiles>\MSBuild\Microsoft\MicrosoftAjax
AjaxMin.dll
AjaxMin.tasks
AjaxMinTask.dll
AjaxMinTask.targets
Old documentation can be found on the ASP.NET site:
http://www.asp.net/ajaxlibrary/AjaxMinDocumentation.ashx