Custom Tasks not showing up.

Posts   
 
    
FarhadB
User
Posts: 28
Joined: 28-Feb-2011
# Posted on: 07-Mar-2011 13:57:00   

Hi

I followed the manual and added custom template I wanted to use......I got to the point where I see the custom template in the list(Pic1) but I do not see the tasks(Pic2)

Any help would be greatly appreciated

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 07-Mar-2011 15:03:19   

I don't have enough information to know exacly what's happening over there. Could you please describe in steps what did you do, so I can ry to reproduce it over here. Or find the missing step.

FarhadB
User
Posts: 28
Joined: 28-Feb-2011
# Posted on: 07-Mar-2011 15:13:35   

Walaa wrote:

I don't have enough information to know exacly what's happening over there. Could you please describe in steps what did you do, so I can ry to reproduce it over here. Or find the missing step.

Okay cool....What I did was...I created an additional template folder at this location(C:\Program Files\Solutions Design\LLBLGen Pro v3.1\Frameworks\LLBLGen Pro\Templates\AdditionalTemplates\C#) and I copied the custom template into the C# folder. I then copied the custom task file to this destination C:\Program Files\Solutions Design\LLBLGen Pro v3.1\Frameworks\LLBLGen Pro\Tasks. The name of the task file is Clyral.Tasks.Adapter .

I then followed the process of going to template bindings viewer, adding a new template binding and the destination folder(file exist = true). Then went on to generate the source code

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 07-Mar-2011 17:08:09   

Did you create a new preset?

FarhadB
User
Posts: 28
Joined: 28-Feb-2011
# Posted on: 07-Mar-2011 18:05:21   

Walaa wrote:

Did you create a new preset?

No...these are templates that I got off the net(Repository & DTO). I assume everything I needed was given in the folders provided? How do I go about creating a preset?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 08-Mar-2011 01:25:12   

Normally the templates come with a .preset file that should be placed in where you place the .tasks files. Anyway this .preset file is just a collection of tasks to execute, in case you want to disable some tasks or merge them with another group of tasks. For instance, you can add those new tasks into the Adapter.2008 preset, so you can generate Adapter classes and DTO at the same time.

Or, you can create your own preset, just go to 'Tasks queue to execute' (at the generation process window), click 'New' and follow the steps. Then add your available tasks. Let us know if you need further help.

David Elizondo | LLBLGen Support Team
FarhadB
User
Posts: 28
Joined: 28-Feb-2011
# Posted on: 08-Mar-2011 11:47:12   

Good...Thanks...will try it