Command line arguments
The Telerik.Sitefinity.Compiler.exe tool has the following command-line arguments, prefixed by a slash:
|
Argument |
Description |
Required |
|
|
The URL of the site from where the compiler retrieves the page markup. |
Yes |
|
|
The application directory of the Sitefinity CMS web application from where to copy all the files needed during compilation. |
Yes |
|
|
The authentication key with which to authenticate to Sitefinity. |
Yes |
|
|
The username that you use to authenticate in Sitefinity. |
Yes |
|
|
The password that you use to authenticate in Sitefinity. |
Yes |
|
|
The membership provider for the user that you use to authenticate in Sitefinity. |
Yes |
|
|
The strategy that defines which pages must be precompiled.
|
Yes |
|
|
The assembly version with which the compiler compiles the resulting assemblies. |
No |
|
|
The folder where the compiler places the generated assemblies. |
No |
|
|
The number of pages generated per assembly. |
No |
|
|
Displays a verbose log of all actions the tool performed. |
No |
EXAMPLE: The following command lines are an example of using Sitefinity CMS precompiler tool:
TextTelerik.Sitefinity.Compiler.exe /url="http://localhost:8080" /appdir="D:\Projects\SitefinityWebApp" /username="sfadmin" /password="admin@2" /strategy="Frontend" /membershipprovider="Default"
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:
TextTelerik.Sitefinity.Compiler.exe /url="http://localhost:8080" /appdir="D:\Projects\SitefinityWebApp" /authKey="8u3#u{9u~]k3M3Q" /strategy="Frontend"
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.