2

Several articles and blogs I have read suggest placing assemblies I wish to make available to T4 in the Visual Studio Public Assemblies folder. This is supposed to be located at C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies, but I have no PublicAssemblies' folder there, onlyPrivateAssemblies. Creating my ownPublicAssemblies` folder doesn't seem to work. Assemblies located here are supposed to be available in the .NET section of the Add References dialogue, and my assembly located there is not.

SOLVED: I was looking under Program Files, not Program Files (x86). I found Public Assemblies in the latter location.

ProfK
  • 49,207
  • 121
  • 399
  • 775

2 Answers2

3

I don't know about that folder, but MS suggests adding a registry key to make your assemblies available in VS as in this quote from this article: How to display an assembly in the "Add Reference" dialog box

To display your assembly in the Add Reference dialog box, you can add a registry key, such as the following, which points to the location of the assembly [HKEY_CURRENT_USER\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders\MyAssemblies]@="C:\\MyAssemblies" where MyAssemblies is the name of the folder in which the assemblies reside.

Hans Olsson
  • 54,199
  • 15
  • 94
  • 116
0

Maybe you can find the answer in another SO question: Can't reference an assembly in a T4 template

Community
  • 1
  • 1
Peter Stegnar
  • 12,615
  • 12
  • 62
  • 80