I would like to know what are the exact input parameters for CreateProjectAction.
I have a Project template that works and that I can use by using the standard VS Add New Project wizard.
But when trying to unffoldingthe wiward with a recipe I get the following error:
Microsoft.Practices.RecipeFramework.ActionExecutionException: An exception occurred during the binding of reference or execution of recipe AddBusinessArea. Error was: Action AddBusinessAreaProjectAction failed to execute:
Value does not fall within the expected range..
Can you see what is wrong in the follwing recipe? Also do you know where I can find a precise documentation (the on-line help is not precise enough and the object brower does not help either)?
Thanks
Alain
<?xml version="1.0" encoding="utf-8"?>
<Recipe Name="AddBusinessArea" xmlns="http://schemas.microsoft.com/pag/gax-core">
<Caption>Add Business Area</Caption>
<Description>Create a new business area project</Description>
<HostData>
<CommandBar Name="Solution" />
</HostData>
<Arguments>
<Argument Type="System.String, mscorlib" Name="BusinessAreaName" />
</Arguments>
<GatheringServiceData>
<Wizard SchemaVersion="1.0" xmlns="http://schemas.microsoft.com/pag/gax-wizards">
<Pages>
<Page>
<Title>AddBusinessAreaPage</Title>
<Fields>
<Field Label="BusinessAreaName" ValueName="BusinessAreaName" />
</Fields>
</Page>
</Pages>
</Wizard>
</GatheringServiceData>
<Actions>
<Action Template="Projects\BusinessArea\BusinessArea.vstemplate"
Type="Microsoft.Practices.RecipeFramework.Library.Actions.CreateProjectAction, Microsoft.Practices.RecipeFramework.Library, Version=1.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Name="AddBusinessAreaProjectAction">
<Input Name="ProjectName" RecipeArgument="BusinessAreaName" />
<Input Name="ProjectFolder" RecipeArgument="BusinessAreaName"/>
<Output Name="Project" />
</Action>
</Actions>
</Recipe>
And the template is
<VSTemplate Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project">
<TemplateData>
<Name>BusinessArea</Name>
<Description>Business Area</Description>
<ProjectType>CSharp</ProjectType>
<ProjectSubType>
</ProjectSubType>
<SortOrder>1000</SortOrder>
<CreateNewFolder>true</CreateNewFolder>
<DefaultName>BusinessArea</DefaultName>
<ProvideDefaultName>true</ProvideDefaultName>
<LocationField>Enabled</LocationField>
<EnableLocationBrowseButton>true</EnableLocationBrowseButton>
<Icon>BusinessArea.ico</Icon>
</TemplateData>
<TemplateContent>
<Project TargetFileName="BusinessArea.csproj" File="BusinessArea.csproj" ReplaceParameters="true" />
</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>
</VSTemplate>