Setting the Registry Key for Custom Directive Processors

Before you call a custom directive processor from a text template in Visual Studio, you must add a key the registry. The registry location for directive processors is:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\TextTemplating\DirectiveProcessors

Warning

Incorrectly editing the registry can severely damage your system. Before making changes to the registry, be sure to back up any valued data on the computer.

This procedure is necessary only if you want to transform your text template in Visual Studio. If you call a custom directive processor from a template, and use the command line tool to transform the template, you do not need to enter the processor in the registry. For more information, see Command-Line Tools for Text Templates.

The name of the key you add should be the name of the custom directive processor class. If your custom directive processor is in a local assembly, the registry subkeys should look like the following table:

Name

Type

Data

(Default)

REG_SZ

(value not set)

Class

REG_SZ

<Namespace Name>.<Class Name>

CodeBase

REG_SZ

<Your Path>\<Your dll Name>

If the assembly is in the GAC, the registry subkeys should look like the following table:

Name

Type

Data

(Default)

REG_SZ

(value not set)

Class

REG_SZ

<Your Fully Qualified Class Name>

Assembly

REG_SZ

<Your Assembly Name in the GAC>