binRootFolder - How to Set?

Posts   
 
    
mshe
User
Posts: 167
Joined: 02-Feb-2006
# Posted on: 14-Jun-2008 18:07:48   

Hi all,

I have a ProjectCreator task performer that looks like:

        <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.

mshe
User
Posts: 167
Joined: 02-Feb-2006
# 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 simple_smile

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# 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.

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 simple_smile

The SDK documentation you mean? simple_smile Yes, it should have a note about this. Will add that too.

Frans Bouma | Lead developer LLBLGen Pro
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 18-Jun-2008 12:52:05   

I've added documentation about all tags found by projectfilecreator.

Frans Bouma | Lead developer LLBLGen Pro