Hi all,
I'm trying to write a recipe which unfolds two different vstemplates into an existing solution. The templates unfold correctly, however I'm unable to substitute arguments from the recipe which is calling the UnfoldTemplateAction.
For example:
- I have a package, whichhas one recipe in it which will unfold two projects into an already created solution.
- In the Templates\Solutions\Project\Silo\ folder are the project files and the .vbprog files and the controlling .vstemplatefile.
- I run the recipe and set the SiloName argument to "TestSilo".
- In the .vstemplate file I have a line
<
ProjectItem ReplaceParameters="true" TargetFileName="$SiloName$.Files.wxs">Files.wxs</ProjectItem>which is intended to use the recipe argument substitute.
- In the Files.wxs file there is a line
src
="$(sys.SOURCEFILEDIR)..\$SiloName$\obj\$(var.Config)\"which is intended to use the recipe argument to substitute.
However, neither arguement is replaced when the recipe runs and unfolds the templates. The File.wxs file is created in my project as
$SiloName$.Files.wxs
not
TestSilo.Files.wxs
and in that file, the src line is generated as
src="$(sys.SOURCEFILEDIR)..\$SiloName$\obj\$(var.Config)\"
not
src="$(sys.SOURCEFILEDIR)..\TestSilo\obj\$(var.Config)\"
I have packageswhich do this already, however the arguments are in a recipe which is called by the vstemplate (see below), so the recipe is called by the solution vstemplate - which is the opposite way round to how I amcalling them now - the recipe unfolds the vstemplate, not the template calling the recipe when started from "New Project...."
<
WizardData>
<
Template xmlns="http://schemas.microsoft.com/pag/gax-template"
SchemaVersion="1.0"
Recipe="CreateSolution">
<
References/>
</
Template>
</
WizardData>
But this is not applicable for me here, as I am trying to unfold two project templates in a solution which is already created.
Can anyone help, so are you not able to use recipe arguements in vstemplates called by UnfoldTemplateAction???
Thanks