views:

948

answers:

2

I am doing some work with T4 (Text Template Transformation Toolkit) and am trying to get to a point where I can create my own custom text template host. However, all of that relies on the Microsoft.VisualStudio.TextTemplating assembly and I cannot find it on my system!

I first tried adding a reference to the assembly in Visual Studio, but the assembly for Microsoft.VisualStudio.TextTemplating is not listed under the .NET tab.

I then took a look in the %WINDIR%/Assembly directory and found an entry for Microsoft.VisualStudio.TextTemplating. However, when I try and browse to this location and add the assembly in Visual Studio, nothing happens.

Has anybody else had this problem? According to MSDN tuts it sounds like this assembly should be included with Visual Studio (and I have VS 2003, 2005, and 2008 installed).

+3  A: 

I have the Visual Studio SDK installed. Here is where the assembly is physically installed on my system: C:\Program Files\Microsoft Visual Studio 2008 SDK\VisualStudioIntegration\Common\Assemblies\Microsoft.VisualStudio.TextTemplating.dll. It does show up in the Add Reference dialog normally.

Thanks, Oleg. I installed the VS2008 SDK and now I can reference the assembly. By the way, your blog has been a great resource to me for T4. I really appreciate all your work!
Jeffaxe
A: 

I have Visual Studio 2008 installed (without the SDK) and Microsoft.VisualStudio.TextTemplating.dll is in the following location on my machine:

C:\Program Files\Common Files\Microsoft Shared\TextTemplating\1.1
Daniel Fortunov