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
0
votes
0answers
29 views

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 ...
1
vote
1answer
82 views

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 /...
1
vote
1answer
54 views

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 - ...
0
votes
0answers
68 views

TDS Code Generation error , "The type 'IGlassBase' already contains a definition for 'Id'

I am using TDS classic Version 5.7.0.13 and Visual Studio 2017 Pro with Sitecore 9.1 initial release. When I try to generate the Code by right clicking -> Re-generate code for all items or when I try ...