Microsoft.VisualStudio.TextTemplating.VSHost Namespace

 

This namespace contains types concerned with the text template transformation service in Visual Studio.

ClassDescription
System_CAPS_pubclassBaseCodeGenerator

A managed wrapper for VS's concept of an IVsSingleFileGenerator which is a custom tool invoked during the build which can take any file as an input and provide a compilable code file as output.

System_CAPS_pubclassBaseCodeGeneratorWithSite

This class exists to be co-created in a preprocessor build step.

System_CAPS_pubclassBaseTemplatedCodeGenerator

Text Templating Code Generator

System_CAPS_pubclassCommandIds

CommandIDs for the Text Templating Orchestrator package.

System_CAPS_pubclassCompositionServices

Class to standardize usage of MEF within T4.

System_CAPS_pubclassModelingTextTransformation

Use this base class for text transformations from domain-specific language models.

System_CAPS_pubclassOrchestratorOptionsAutomation

Provides storage for the settings that are displayed in the Text Templating page in the Tools Options dialog.

System_CAPS_pubclassOrchestratorOptionsPage

The page in the Visual Studio Tools>Options dialog in which users can set Text Templating options.

System_CAPS_pubclassProvideCodeGeneratorAttribute

Apply this attribute to the package class in a Visual Studio extension that provides a custom tool.

System_CAPS_pubclassProvideCodeGeneratorExtensionAttribute

Attribute class to provide registration of a code generator against a specific file extension

System_CAPS_pubclassProvideDirectiveProcessorAttribute

Attribute class to provide the registry entries for a T4.VSHost Directive Processor

System_CAPS_pubclassProvideIncludeFolderAttribute

Attribute class to provide the registry entries for a T4.VSHost include folder.

System_CAPS_pubclassTemplatedCodeGenerator

Parses a file template to produce its output. Only a single generator is needed for any style of template as the custom code is handled with directive providers.

System_CAPS_pubclassTemplatedPreprocessor

Parses a file template to produce the code class needed to generate the output of the template. Only a single generator is needed for any style of template as the custom code is handled with directive providers.

System_CAPS_pubclassTextTemplatingCallback

System_CAPS_pubclassTransformationRunFactory

To invoke text template transformation in a Visual Studio extension, get the STextTemplating service, cast it to ITextTemplating, and then use the methods there:

ITextTemplating tt = ServiceProvider.GetService(typeof(STextTemplating)) as ITextTemplating;
tt.ProcessTemplate(templatePath, templateContent, errorCallback, vsProjectHierarchy);

For more information, see Customizing T4 Text Transformation.

Return to top
Show: