Clarius Forums

learn from us.
It is currently Fri Sep 10, 2010 7:49 am
View unanswered posts | View active topics


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Exact syntax for input parameters for CreateProjectAction?
PostPosted: Fri Jul 27, 2007 12:39 pm 
Offline

Joined: Mon Jan 22, 2007 7:56 am
Posts: 1

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>


 



 
 Profile Email  
 
 Post subject: Re: Exact syntax for input parameters for CreateProjectAction?
PostPosted: Mon Oct 29, 2007 8:16 pm 
Offline

Joined: Wed Jun 07, 2006 7:56 pm
Posts: 30
Location: Buenos Aires, Argentina
Hi
The input properties are
ProjectName, where is the name that will have the new project.
Template, where is the path where you've the vstemplate file.
ProjectFolder, where is the physical folder where you want to unfold the template.

You can use the object browser to find out the api of each action.

hth
jose.


 
 Profile Email  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2002, 2006 phpBB Group
[ Time : 0.144s | 12 Queries | GZIP : On ]