Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Custom Templates> binRootFolder - How to Set?
 

Pages: 1
Custom Templates
binRootFolder - How to Set?
Page:1/1 

  Print all messages in this thread  
Poster Message
mshe
User



Location:
Markham, Canada
Joined on:
02-Feb-2006 23:31:34
Posted:
167 posts
# Posted on: 14-Jun-2008 18:07:48.  
Hi all,

I have a ProjectCreator task performer that looks like:

Code:
        <task name="Create DTO Project" assemblyFilename="SD.LLBLGen.Pro.TaskPerformers.dll" taskPerformerClass="SD.LLBLGen.Pro.TaskPerformers.ProjectFileCreator">
                <parameters>
                    <parameter name="destinationFolder" defaultValue="" isOptional="false" description="The folder to generate the project file in, relative to the destination root folder."/>
         <parameter name="filenameFormat" defaultValue="[projectName].[extension]proj" isOptional="false" description="The project filename format specification."/>
         <parameter name="templateID" defaultValue="SD_VsNet2005Template" isOptional="false" description="The ID of the template to use for the VS.NET project file" valueType="templateID"/>
         <parameter name="useRootNameSpaceForProjectName" defaultValue="false" isOptional="false" description="Flag to signal if the rootnamespace specified should be used for the project name. If set to false, the property projectName has to be specified with the value to use for project name." valueType="boolean"/>
         <parameter name="alterWhenExistent" defaultValue="true" isOptional="true" description="Flag to signal if an existing project file should be altered or should be left alone." valueType="boolean"/>
         <parameter name="binRootFolder" defaultValue="DTO\bin" isOptional="true" description="The name of the root folder, relative to the destination root folder, where VS.NET should store the output folders like bin\debug."/>
         <parameter name="clearFileCacheAfterwards" defaultValue="true" isOptional ="true" description="Flag to signal if the filename cache has to be cleared after this task has been run succesfully." valueType="boolean"/>
         <parameter name="templateBindingDefinitionName" defaultValue="" isOptional="true" description="The name of the TemplateBindings from which to pick the templateID specified. Specifying this parameter will always force the templateID to be picked from the templateBindings with the name specified."/>
         <parameter name="projectName" defaultValue="MyCompany.MyProject.DAL.DTO" isOptional="true" description="The name to use for the project if useRootNameSpaceForProjectName is set to false or left empty. If projectName has been left empty, the ProjectName property value of the LLBLGen Pro project is used instead, if useRootNameSpaceForProjectname is set to false or left empty."/>
                </parameters>
            </task>



However, the binRootFolder is not being picked up by the generator, the template file has the output folder set to:     <OutputPath>bin\</OutputPath>

Thanks.
  Top
mshe
User



Location:
Markham, Canada
Joined on:
02-Feb-2006 23:31:34
Posted:
167 posts
# Posted on: 14-Jun-2008 19:07:45.  
Found the tag to use <[BinRootFolder]> seems these tags are case sensitive?

I think the template studio documentation needs a bit of an update? I had to look at the source code to see how everything works Regular Smiley


  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37645 posts
# Posted on: 15-Jun-2008 12:02:00.  
mshe wrote:
Found the tag to use <[BinRootFolder]> seems these tags are case sensitive?

Yes, it does a string replace. So if the marker in the template isn't found it doesn't replace it.

Quote:

I think the template studio documentation needs a bit of an update? I had to look at the source code to see how everything works Regular Smiley

The SDK documentation you mean? Regular Smiley Yes, it should have a note about this. Will add that too.
Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37645 posts
# Posted on: 18-Jun-2008 12:52:05.  
I've added documentation about all tags found by projectfilecreator.

Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.