t4 "VisualStudioHelper" not found

c#, t4, tangible-t4-editor, visual-studio-2012

Solution

VisualStudioHelper is a custom class from Tangible T4 Editor.

In order to use this class, install Tangible T4 Editor for your Visual Studio and then:

- Open Tangible T4 menu in Visual Studio and then click Template Gallery.

- Click "Update Now" icon from left-down corner.

- Choose from the directory tree: Tangible > Visual Studio CodeModel.

- In the files menu, right mouse button on "Walking the Visual Studio Code Model" and choose "Add to Solution..."

- Choose "VisualStudioHelper.ttinclude".

- In your .tt file refer to VisualStudioHelper as following:

`<#@ include file="VisualStudioHelper.ttinclude" #>`

Problem

I'm trying to do some experiments with generating code from VS2012 projects but I cannot make this piece of t4 code to work ``` var project = VisualStudioHelper.CurrentProject; ``` since VisualStudioHelper cannot be found. What should I install/include in my t4 for making VisualStudioHelper available?

Original source