Skip to content

Commit 6eedfee

Browse files
Update design-time-code-generation-by-using-t4-text-templates.md
-Undid snippet language change, since I can't find a standard way its done across T4 docs.
1 parent abe0914 commit 6eedfee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/modeling/design-time-code-generation-by-using-t4-text-templates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ Design-time T4 text templates let you generate program code and other files in y
266266
### Getting data from Visual Studio
267267
To use services provided in Visual Studio, set the `hostSpecific` attribute and load the `EnvDTE` assembly. Import `Microsoft.VisualStudio.TextTemplating`, which contains the `GetCOMService()` extension method. You can then use IServiceProvider.GetCOMService() to access DTE and other services. For example:
268268

269-
```csharp
269+
```src
270270
<#@ template hostspecific="true" language="C#" #>
271271
<#@ output extension=".txt" #>
272272
<#@ assembly name="EnvDTE" #>

0 commit comments

Comments
 (0)