CompositionServices Class
Visual Studio 2015
Class to standardize usage of MEF within T4.
Assembly: Microsoft.VisualStudio.TextTemplating.VSHost.12.0 (in Microsoft.VisualStudio.TextTemplating.VSHost.12.0.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | ServiceContainer | Service container to add local services within the AppDomain |
![]() ![]() | ServiceProvider | Service provider to ask for local services within the AppDomain Query for SComponentModel to acquire MEF services. |
| Name | Description | |
|---|---|---|
![]() ![]() | InitializeServices(IServiceProvider^) |
To make the services available, write this in your text template:
<#@ template hostSpecific="true" #>
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:


