Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > The project factory Library is not registered
 

The project factory Library is not registered

I'm trying to make the most simple GAT project. When I try to register the project, I get the following exception:

Microsoft.Practices.RecipeFramework.RecipeFrameworkException: The project factory Library is not registered, template C:\Documents and Settings\MYeager\My Documents\Visual Studio 2005\Projects\MilosTestGuidancePackage\MilosTestGuidancePackage\bin\Debug\Templates\Solutions\Projects\_ExternalReferences\_ExternalReferences.vstemplate cannot be installed.

at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.TemplateMetaData..ctor(String templateFileName, CommandID command, String packageName)

at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.VSTemplatesService.Microsoft.Practices.RecipeFramework.VisualStudio.Common.IVsTemplatesService.GetTemplate(String templateFileName)

at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.VSTemplatesService.GetTemplate(String templateFile, ArrayList templates, GuidancePackage guidancePackage)

at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.VSTemplatesService.GetTemplates(String directory, ArrayList templates, GuidancePackage guidancePackage)

at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.VSTemplatesService.PopulateTemplates(String basePath, ArrayList templates, GuidancePackage guidancePackage)

at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.VSTemplatesService.Microsoft.Practices.RecipeFramework.VisualStudio.Common.IVsTemplatesService.RegisterTemplates(String basePath, GuidancePackage guidancePackage)

at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeFrameworkInstaller.RegisterTemplates(GuidancePackageRegContext context, Boolean register)

at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeFrameworkInstaller.RegisterPackage(InstallContext installContext, Boolean register, GuidancePackage packageConfig)

at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeFrameworkInstaller.Microsoft.Practices.RecipeFramework.IHostInstaller.InstallPackage(InstallContext context, GuidancePackage packageConfig)

at Microsoft.Practices.RecipeFramework.ManifestInstaller.InstallPackage(String configuration)

at Microsoft.Practices.RecipeFramework.ManifestInstaller.Install(IDictionary stateSaver)

at System.Configuration.Install.Installer.Install(IDictionary stateSaver)

at System.Configuration.Install.AssemblyInstaller.Install(IDictionary savedState)

at System.Configuration.Install.Installer.Install(IDictionary stateSaver)

at System.Configuration.Install.TransactedInstaller.Install(IDictionary savedState)

The Rollback phase of the installation is beginning.

Here is the .vstemplate file it is choking on:

<VSTemplate Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project">

<TemplateData>

<Name>_ExternalReferences</Name>

<Description>External assemblies for a Milos Solution based project</Description>

<ProjectType>Library</ProjectType>

<ProjectSubType>CSharp</ProjectSubType>

<SortOrder>1000</SortOrder>

<CreateNewFolder>true</CreateNewFolder>

<DefaultName>_ExternalReferences</DefaultName>

<ProvideDefaultName>true</ProvideDefaultName>

<Icon>_ExternalReferencesIcon.ico</Icon>

</TemplateData>

<TemplateContent>

<Project File="_ExternalReferences.csproj" ReplaceParameters ="true">

<ProjectItem>Properties\AssemblyInfo.cs</ProjectItem>

</Project>

</TemplateContent>

<WizardExtension>

<Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, Version=1.0.60429.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

<FullClassName>Microsoft.Practices.RecipeFramework.VisualStudio.Templates.UnfoldTemplate</FullClassName>

</WizardExtension>

<WizardData>

<Template xmlns="http://schemas.microsoft.com/pag/gax-template"

SchemaVersion="1.0"

Recipe="CreateSolution">

</Template>

</WizardData>

</VSTemplate>

Mike Yeager  Tuesday, October 31, 2006 7:13 PM

Hi,

Can you please try replacing your current elements:

<ProjectType>Library</ProjectType>

<ProjectSubType>CSharp</ProjectSubType>

with just:

<ProjectType>CSharp</ProjectType>

Let me know if this fixes it,

thanks,
-Victor.

vga  Wednesday, November 08, 2006 11:33 PM

Hi,

Can you please try replacing your current elements:

<ProjectType>Library</ProjectType>

<ProjectSubType>CSharp</ProjectSubType>

with just:

<ProjectType>CSharp</ProjectType>

Let me know if this fixes it,

thanks,
-Victor.

vga  Wednesday, November 08, 2006 11:33 PM

Thank you, that was the answer. I guess the exception messages aren't as complete as they should be yet. It would have been nice if it referred to the ProjectType tag and the .vstemplate file. That's what CTPs are about, isn't it?

Mike

Mike Yeager  Friday, November 10, 2006 5:08 PM

glad it's working now!

funny thing is that not-really-helpfull-at-all error message is really coming from Visual Studio and not GAT

-Victor.

vga  Monday, November 13, 2006 4:58 AM

You can use google to search for other answers

Custom Search

More Threads

• Which APIs should be used with VSTS to do web test automation ?
• Passing custom objects to t4 templates
• Installation: Error 1001
• Calling a recipe inside another recipe???
• Is there any way to run an action when a project with my guidance package enabled is opened?
• How to use a custom utilty in GAT for geenrating Class files.
• Use of ExpressionEvaluatorValueProvider in VS2008
• Error installing the GAT - February 2007 CTP
• Adding a recipe to a GAT package to create a view/presenter as in SCSF
• Unbound reference to a filetype