Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Custom Templates> Task Project Namespace + ProjectName
 

Pages: 1
Custom Templates
Task Project Namespace + ProjectName
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 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:

Code:

        <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!
  Top
mshe
User



Location:
Markham, Canada
Joined on:
02-Feb-2006 23:31:34
Posted:
167 posts
# Posted on: 14-Jun-2008 18:08:18.  
I found there is an undocumented tag that does this?

Code:
<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."/>


  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37635 posts
# 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
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:
37635 posts
# Posted on: 18-Jun-2008 12:44:06.  
There was also clearFileCacheAfterwards, which wasn't documented. Added.

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.