Microsoft.VisualStudio.TextTemplating.VSHost Namespace
Visual Studio 2012
This namespace contains types concerned with the text template transformation service in Visual Studio.
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.
| Class | Description | |
|---|---|---|
![]() | BaseCodeGenerator | 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. |
![]() | BaseCodeGeneratorWithSite | This class exists to be co-created in a preprocessor build step. |
![]() | BaseTemplatedCodeGenerator | Text Templating Code Generator |
![]() | CommandIds | CommandIDs for the Text Templating Orchestrator package. |
![]() | CompositionServices | Class to standardize usage of MEF within T4. |
![]() | DebugTemplateEventArgs | |
![]() | ModelingTextTransformation | Use this base class for text transformations from domain-specific language models. |
![]() | OrchestratorOptionsAutomation | Provides storage for the settings that are displayed in the Text Templating page in the Tools Options dialog. |
![]() | OrchestratorOptionsPage | The page in the Visual Studio Tools>Options dialog in which users can set Text Templating options. |
![]() | ProvideCodeGeneratorAttribute | Apply this attribute to the package class in a Visual Studio extension that provides a custom tool. |
![]() | ProvideCodeGeneratorExtensionAttribute | Attribute class to provide registration of a code generator against a specific file extension |
![]() | ProvideDirectiveProcessorAttribute | Attribute class to provide the registry entries for a T4.VSHost Directive Processor |
![]() | ProvideIncludeFolderAttribute | Attribute class to provide the registry entries for a T4.VSHost include folder. |
![]() | TemplatedCodeGenerator | 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. |
![]() | TemplatedPreprocessor | 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. |
![]() | TextTemplatingCallback | |
![]() | TransformationRunFactory |
| Interface | Description | |
|---|---|---|
![]() | IDebugTextTemplating | |
![]() | ITextTemplating | The principal interface of the text template transformation service in Visual Studio, STextTemplating. |
![]() | ITextTemplatingCallback | Callback interface to be implemented by clients of the STextTemplating service that wish to process errors and information |
![]() | ITextTemplatingComponents | Interface on the STextTemplating service to support advanced scenarios requiring manipulation of the components of the text templating service |
![]() | STextTemplating | The text template transformation service in Visual Studio. |
