When using ComponentOne XapOptimizer from the command line, you can specify several command line arguments.
Using XapOptimizerCmd.exe
Previously you could use the /cmd command line argument to run XapOptimizer.exe in command mode, for example for batch runs (see below on this page for details). Now it's recommended that you use the separate XapOptimizerCmd.exe application included in the XapOptimizer installation.
The required command line argument is:
• /p: Specifies the project name.
See Adding XapOptimizer to the Build Process for details.
Using XapOptimizer.exe
If you're still using the /cmd command line argument to run XapOptimizer.exe in command mode, for example for batch runs, you could use the following command line arguments:
• /p: Specifies the project name.
• /i: Specifies the location of the input XAP file.
• /o: Specifies the location of the output XAP file.
Note that generally there are two exclusive modes: specifying just the input/output file locations or the ComponentOne XapOptimizer project. So, for example, the following arguments are valid:
• XapOptimizer.exe /i:input.xap /o:output.xap
• XapOptimizer.exe /p:project.xoproj