Running the Upload Assembly tool
Run the TCMUploadAssembly command-line executable to upload a .NET assembly to the Content Manager. You can specify parameters to override configuration settings.
About this task
Note: Certain changes to your assembly may cause the upload to fail if one or more of the uploaded items are in use. For example, if you remove a class that implements
ITemplate, your upload fails if there is a Compound Template that calls that class from one of its Template Building Blocks.
Procedure
- Open a command line prompt.
- Run the command-line tool as follows:
TCMUploadAssembly.exe config.xml myAssembly.dllwhere
config.xmlis the name of your configuration file, andmyAssembly.dll(which may also contain a path) is the name of your .NET assembly. - Override the values in the configuration file and/or the assembly by specifying the following parameters:
/folder:<tcmuri>-
Save the Template Building Block containing the .NET assembly to a Folder with the Content Manager URI (unique identifier) called
<tcmuri>. /bundle:<tcmuri>-
(optional) Add the Template Building Block containing the .NET assembly to a Bundle with the Content Manager URI called
<tcmuri>. /targeturl:<webserviceurl>-
provide a different URL (
<webserviceurl>) for the Web service. /username:<nameofuser>- Provide a different user name to connect to the Web service.
/password:<password>- Provide a different password when connecting to the Web service.
/verbose- Show extra debug information.
/uploadpdb:<true|false>- Upload or not upload a file with debug information (a .pdb file) along with the assembly.
/timeout:<seconds>- Explicitly set the amount of time, in seconds, that SDL Tridion Sites allows for the uploading of the assembly. If omitted, this setting defaults to 100 seconds.