You can integrate the call to the Upload Assembly Tool as a post-build event in Visual Studio so that the command line call is automatically executed after a build.
Procedure
- Start Visual Studio and open the Visual Studio Project you use to build your .NET assembly.
- From the Project menu, select <projectname> Properties from the main menu, where <projectname> is the name of the project. The properties tab for this project opens.
- Select the Build Events item on the tab, and under Post-build event command line, enter the following:
c:\SDL Tridion\TCMUploadAssembly.exe <config.xml> "$(TargetPath)"
where c:\SDL Tridion\ is the path to the TCMUploadAssembly.exe upload tool, and <config.xml> is the path and filename of your configuration file. If needed, add one or more command line parameters to this command (see Running the Upload Assembly tool).
- Close the properties tab. A new build of this project will now always cause the command you entered to be executed; that is, to create or update a Template Building Block in the Content Manager.