I've finished using CodeSmith to help with generating some of our tiers (or should I say "just started"?). So I posted some things I've learned from it: 10 Tips on SubTemplates, Batch Mode, and XmlProperties on the CodeSmith Peer Support Forum. This covers solutions I've found for:
- Passing values between subtemplates
- Handling that Sub template does not inherit parent's merge strategy
- Handling that target of RenderToFile must exist
- Handling Multi-level subtemplates
- Throwing and using errors in batch mode
- Embed XmlProperty filename instead of data
- Dynamically make your own batch file
- Only write new content
- Reusable code for XmlProperties
- Instantiate an XmlProperty at runtime
Details on the forum.
The link to the support forum is dead. Do you still have the full post ? I am struggling to set an XmlProperty at runtime.
ReplyDelete