What is the installer doing that I'm not?

Dec 20, 2009 at 3:56 AM
Edited Dec 20, 2009 at 3:59 AM

Hello!

I'm a first time user of the T4 toolbox and would like to get a better understanding for how it works. My first goal is to setup the T4 toolbox project, compile the binaries myself and get a small test-project to use them. In the interest of learning, I don't want to use the installer. Unfortunately, I've hit a wall trying to get my test-project to use the template include files. This is the error I get:

7 Warning:  The path 'E:\Projects\T4Toolbox-44324\Source\T4Toolbox.tt' must be either local to this computer or part of your trusted zone.
8 Error:       Failed to resolve include text for file:E:\Projects\T4Test\src\Model\T4Toolbox.tt

Below I've included the registry entries I've added. It seems that Visual Studio is picking up the template include directory (E:\Projects\T4Toolbox-44324\Source\) because without these registry entries I don't get the warning (7), only the error (8). I assume that the error will get solved once Visual Studio knows that including the files from this path is safe. Using the Toolbox in my test-project works fine if I use the installer, so I assume the installer is doing something that I'm not, but what?

Any help would be very much appreciated!

Environment:

E:\ drive is a local harddrive
Windows 7 64 bit
Visual Studio 2010 beta 2
T4 Toolbox Source Code Download version 9.12.5.1

Added registry entries:

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\TextTemplating\IncludeFolders\.tt]
"IncludeT4Toolbox"="E:\\Projects\\T4Toolbox-44324\\Source\\"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\TextTemplating\DirectiveProcessors\T4Toolbox.DteProcessor]
"Class"="T4Toolbox.DteProcessor"
"Assembly"="T4Toolbox.10.0, Version=9.12.5.1, Culture=neutral, PublicKeyToken=7e313accbcce84dc"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\TextTemplating\DirectiveProcessors\T4Toolbox.TestRunnerProcessor]
"Class"="T4Toolbox.TestRunnerProcessor"
"Assembly"="T4Toolbox.10.0, Version=9.12.5.1, Culture=neutral, PublicKeyToken=7e313accbcce84dc"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\TextTemplating\DirectiveProcessors\T4Toolbox.TransformationContextProcessor]
"Class"="T4Toolbox.TransformationContextProcessor"
"Assembly"="T4Toolbox.10.0, Version=9.12.5.1, Culture=neutral, PublicKeyToken=7e313accbcce84dc"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\TextTemplating\DirectiveProcessors\T4Toolbox.XsdProcessor]
"Class"="T4Toolbox.XsdProcessor"
"Assembly"="T4Toolbox.10.0, Version=9.12.5.1, Culture=neutral, PublicKeyToken=7e313accbcce84dc"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\CLSID\{1C371848-6C96-472D-B8EF-92089186CCDF}]
@="T4 Script File Generator"
"Class"="T4Toolbox.VisualStudio.T4ScriptFileGenerator"
"Assembly"="T4Toolbox.10.0, Version=9.12.5.1, Culture=neutral, PublicKeyToken=7e313accbcce84dc"
"InprocServer32"="C:\\Windows\\SysWOW64\\mscoree.dll"
"ThreadingModel"="Both"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\Generators\{164B10B9-B200-11D0-8C61-00A0C91E29D5}\T4ScriptFileGenerator]
@="T4 Script File Generator"
"CLSID"="{1C371848-6C96-472D-B8EF-92089186CCDF}"
"GeneratesDesignTimeSource"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\Generators\{FAE04EC1-301F-11D3-BF4B-00C04F79EFBC}\T4ScriptFileGenerator]
@="T4 Script File Generator"
"CLSID"="{1C371848-6C96-472D-B8EF-92089186CCDF}"
"GeneratesDesignTimeSource"=dword:00000001

 

Dec 23, 2009 at 1:21 AM

Running VS2010 under an Administrator account got me around this issue. However, last night I did a clean re-installation of Windows 7 + VS2010 and now everything works as expected without administrator privileges.