Questions tagged [code-generation]

Question related to use of Code Generation tools such as TDS or Leprechaun to Item and Template create model classes

Filter by
Sorted by
Tagged with
1 vote
1 answer

Leprechaun custom field mapping not working, always outputs field type as string

I'm using Leprechaun for code generation and the custom field mapping I'm trying to implement isn't working. The field is generated as type String in every case, so I know the custom mapping is ...
Erica Stockwell-Alpert's user avatar
0 votes
1 answer

Code generation in Sitecore 10.2 apart from TDS [closed]

Recently we have upgraded Sitecore to 10.2. For code generation we have implemented 'Leprechaun' and code is being generated fine. But I want to know if 'Leprechaun' is recommended by Sitecore. If no, ...
Prateek's user avatar
  • 61
2 votes
1 answer

Could not find a part of the path in TDS

I am trying to sync items in TDS during sync some items I am getting this error. Could not find a part of the path 'D:\Projects\WebsiteProject\TDS\Intranet\TDS.Master.Templates\sitecore\templates\...
Rishiraj Shekhawat's user avatar
2 votes
1 answer

Passing Code Generation Properties to TDS T4 templates

I want to pass some additional parameters to my T4 code generation templates in my TDS projects. In the TDS Projects Code Generation properties tab, there is a field for passing additional code ...
mikaelnet's user avatar
  • 784
1 vote
0 answers

How do I configure Leprechaun field/type mapping at a feature level?

I've added the below configuration to a CodeGen.config file at the Feature level. The code is generated and put into the feature Template.cs file, but the mapping I've added isn't picked up. If I add ...
Jason Bert's user avatar
1 vote
1 answer

What should my Leprechaun Configuration look like in a non-Helix project?

I'm trying to configure Sitecore Leprechaun to generate Glass models for my project, but no matter what I do, I can't seem to get it to work. My project folder structure looks like: /sitecore /...
Liam Smith's user avatar
1 vote
1 answer

TDS Re-Generate Code only for one target Item

TDS allows to Re-Generate Code for all Items by clicking appropriate TDS project in VS Explorer. This process also is executed during item creating/changing (any synchronization stuff). Question - ...
Vadzim Papko's user avatar