Command line arguments
The Telerik.Sitefinity.Compiler.exe too has the following command-line arguments, prefixed by a slash:
|The URL of the site from where the compiler retrieves the page markup.
|The application directory of the Sitefinity CMS web application from where to copy all the files needed during compilation.
|The authentication key with which to authenticate to Sitefinity.
|The username that you use to authenticate in Sitefinity.
|The password that you use to authenticate in Sitefinity.
|The membership provider for the user that you use to authenticate in Sitefinity.
The strategy that defines which pages must be precompiled.
You can enter one of the following:
NOTE: This argument is case sensitive.
|The assembly version with which the compiler compiles the resulting assemblies.
By default, the version is 126.96.36.199
|The folder where the compiler places the generated assemblies.
By default, this is the application’s bin folder.
|The number of pages generated per assembly.
The default value is 1000.
EXAMPLE: The following command lines are an example of using Sitefinity CMS precompiler tool:
EXAMPLE: Use the following example to authenticate using an authentication key. You must always use authentication key, if your authentication mode is set to Windows authentication:
If the execution was successful, the tool returns an exit code of
0; if not - exit code of
4. Use the exit code to track whether and when the tool has finished its execution and possibly integrate it in the MSBuild script of your project.