Disable taskGroupPreset or taskPreset

Posts   
 
    
jovball
User
Posts: 446
Joined: 23-Jan-2005
# Posted on: 24-Nov-2025 03:45:26   

According to the docs "If a task or taskgroup is in the preset but marked disabled (enabled=false), it is added to the taskgroup in the runqueue, but will be disabled." I have tried setting either or both of those values to false as shown but the task still runs. Is this a documentation issue, bug or user problem?

<taskGroupPreset enabled="false" name="SD.Tasks.Base.GenericTaskGroup" displayName="Generate Entity Framework Domain model with POCO entities" requiresCleanCache="false"> <taskPreset enabled="false" name="SD.Tasks.Base.ConsumeLptTemplate" displayName="Generate DTO Classes" requiresCleanCache="false">

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39990
Joined: 17-Aug-2003
# Posted on: 24-Nov-2025 09:58:32   

The syntax is isEnabled="false", not enabled="false". If you use the preset editor -> Edit as Xml, you get intellisense which will tell you this. Also, e.g. the preset SD.Presets.Adapter.General.preset has 2 disabled tasks at the bottom. I tried it out and disabling a task in the preset using isEnabled="false" worked fine.

So I think the docs are wrong here, so which document mentions this wrongly so we can correct it?

Frans Bouma | Lead developer LLBLGen Pro
jovball
User
Posts: 446
Joined: 23-Jan-2005
# Posted on: 24-Nov-2025 15:36:54   

I meant to include this in my original post.

https://www.llblgen.com/Documentation/5.12/SDK/tasksandpresets.htm

TIL: That Edit as XML has Intellisense. I've always thought of it as just a Notepad type editor.

One more question while I'm here. Some of the existing taskPresets have a performRule element but I don't see any documentation on it. What does that do?

<performRule isEnabled="false" settingName="" operator="0" operand="" />

jovball
User
Posts: 446
Joined: 23-Jan-2005
# Posted on: 24-Nov-2025 21:26:22   

Ignore my last question about performRule. The documentation is here: https://www.llblgen.com/Documentation/5.12/SDK/tasksxmlformat.htm