If you have custom .NET assemblies whose API you would like to expose in all of your workflow C# script fragments, configure them in the Content Manager configuration file, Tridion.ContentManager.config, in the cSharpSourceCodeReferences section.
Procedure
- On your Content Manager server, navigate to %TRIDION_HOME%\config\.
- Open Tridion.ContentManager.config for editing.
- Inside the
cSharpSourceCodeReferences section, add a new add element with the following attribute-value pairs:
target
-
Set to
Workflow or, if you also want to make this assembly available to your templating C# fragments, set to Templating, Workflow instead.
assemblyName
-
Set to the fully qualified name of your assembly in the Global Assembly Cache,
MyOrg.Foo.Client, Version=1.2.0.0, Culture=neutral, PublicKeyToken= ddfc895711d50a3a for example. If you specify this attribute, you do not need to specify an assemblyFileName attribute.
assemblyFileName
-
Set to the full path to the DLL file containing your custom .NET assembly,
c:\MyAssemblies\MyAssembly.dll for example. If you specify this attribute, you do not need to specify an assemblyName attribute.
- Within this new
add element, specify one or more namespaces in one or more add elements, each of which must have a namespace attribute set to the name of the namespace.
- Save and close Tridion.ContentManager.config.
- Restart Content Manager.