Task Project Namespace + ProjectName

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

Hi all,

I'm using v2.5's template studio to create DTOs.

I have a task to create a separate project:


        <task name="DTOProjectorCreator" assemblyFilename="SD.LLBLGen.Pro.TaskPerformers.dll" taskPerformerClass="SD.LLBLGen.Pro.TaskPerformers.ProjectFileCreator">
                <parameters>
                    <parameter name="destinationFolder" defaultValue="DTO" isOptional="false" description="The folder to generate the project file in, relative to the destination root folder."/>
          <parameter name="filenameFormat" defaultValue="[projectName].DTO.[extension]proj" isOptional="false" description="The project filename format specification."/>
          <parameter name="templateID" defaultValue="SD_VsNet2008Template" 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."/>
                </parameters>
            </task>

Is there a way to override the project namespace + project name?

My current project namespace is MyCompany.Product.DAL.Adapters, however, I like the project the DTOs to placed under MyCompany.Product.DAL.DTO.

Thanks!

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

I found there is an undocumented tag that does this?

<parameter name="projectName" defaultValue="MyCompany.MyProduct.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."/>
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 15-Jun-2008 11:59:38   

The parameters are the parameters to specify for the taskperformer, so all parameters available to you are the ones accepted by the taskperformer used. You then should first check the parameters accepted by the taskperformer used which are described for the shipped taskperformers in the manual.

You are indeed right: the 'projectName' isn't documented properly. I'll add that to the SDK docs.

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

There was also clearFileCacheAfterwards, which wasn't documented. Added.

Frans Bouma | Lead developer LLBLGen Pro