Installing a custom template

Posts   
 
    
Ian avatar
Ian
User
Posts: 511
Joined: 01-Apr-2005
# Posted on: 28-Sep-2006 18:15:31   

Hi,

With V1 of LLBLGen I had the following in 'AdapterScenarioFullSafe2003.config'...

                <task name="CustomTemplate" assemblyFilename="SD.LLBLGen.Pro.TaskPerformers.dll" taskPerformerClass="SD.LLBLGen.Pro.TaskPerformers.CodeEmitter">
                    <parameter name="destinationFolder" value="DatabaseGeneric"/>
                    <parameter name="failWhenExistent" value="false"/>
                    <parameter name="filenameFormat" value="CustomEntityHelper.[extension]"/>
                    <parameter name="templateID" value="Custom_EntityHelperTemplate"/>
                    <parameter name="emitType" value="generic"/>
                </task>

... this is in 'CSharpTemplateSet.config'...

<templateBinding templateID="Custom_EntityHelperTemplate" templateFilename="..\..\..\SharedTemplates\C#\customEntityHelper.template" />

...and of course a template file.

so where do they go in V2?

Cheers, Ian.

worldspawn avatar
worldspawn
User
Posts: 321
Joined: 26-Aug-2006
# Posted on: 29-Sep-2006 01:01:32   

You'll need to make a news .tasks files and a new .templateBindings file.

Look at whats in your v2 /Tasks and /Templates folder for an example of what they should look like.