I've been trying to work through the steps in the
Jelle Druyts tutorial but using the new
Guidance Automation Toolkit for Visual Studio 2008 - February 2008 Release as the starting point, rather than the zip files on the tutorial website. The work is being done in VS2008 on a Vista 32-bit platform.
All is well ... up to a point. After compiling and installing a very simple package (Druyts' GAS03 example), and trying to use it to create a new project, I get
System.InvalidOperationException: Cannot find registration information for template "C:\Code\TOSEnterprise\GuidancePackage1\GuidancePackage1\bin\Debug\Templates\Solutions\ApplicationBlock.vstemplate". Package templates may not be properly registered. Run package installation again and verify template name and location.
at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.VSTemplatesService.GetTemplateRegistryData(String templateFileName)
at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.VSTemplatesService.Microsoft.Practices.RecipeFramework.VisualStudio.Common.IVsTemplatesService.GetTemplate(String templateFileName)
at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.VszWizard.EnvDTE.IDTWizard.Execute(Object Application, Int32 hwndOwner, Object[]& ContextParams, Object[]& CustomParams, wizardResult& retval)
Now, the odd thing is, when I look in
C:\Code\TOSEnterprise\GuidancePackage1\GuidancePackage1\bin\Debug\Templates\Solutions\ the offending file is indeed there.
Checking the registry, I find (in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Packages\{77d93a80-73fc-40f8-87db-acd3482964b2}\Templates\{c4efc0c0-36bf-4336-834e-0e19a77af0ba}) string entries for
- PackageName (GuidancePackage1),
- LastTemplate (2), and
- string entries for
- the first template (1 = C:\Code\TOSEnterprise\GuidancePackage1\GuidancePackage1\bin\Debug\Templates\Solutions\ApplicationBlock.vstemplate) and
- the second template (2 = C:\Code\TOSEnterprise\GuidancePackage1\GuidancePackage1\bin\Debug\Templates\Solutions\Projects\Runtime\Runtime.vstemplate).
Anyone seen this before? I've been trying, without success, to do various permutations for the past three days and haven't gotten anywhere. From the other posts on this forum, either everyone is using VS2005 and an earlier version of the toolkit, or I'm doing somethng terribly misguided and just not realizing it.
Thanks for any help that can be had.
-- Michael