I want to use T4 in order to create my costumer classes. Ineed to pass XmlSerializer Classto template and start file generation.
Is it possible? Thank you
- Andrea Bianchi -
site: http://www.BianchiAndrea.com
BianchiAndrea.com Friday, April 24, 2009 2:47 PM
You have several options, depending on how the code selecting the file is implemented: http://www.olegsych.com/2008/04/t4-template-design/. It sounds like this code is implemented in a Visual Studio Add-on, so "Standalone Template" may be the best approach.Oleg
To better explain, Igive youmore details of my scenario. I have a generation code who iterate in directory and select many file with some criteria. I want thatgeneration code use T4 in order to generate class from the XmlSerialized Class of single file selected. How can I do in order to pass the XmlSerialized Class "selected" to the T4 template.
The solution that you give me is not the same? Rght?
Another idea?
Thks.- Andrea Bianchi -
site: http://www.BianchiAndrea.com
BianchiAndrea.com Monday, April 27, 2009 7:29 AM
You have several options, depending on how the code selecting the file is implemented: http://www.olegsych.com/2008/04/t4-template-design/. It sounds like this code is implemented in a Visual Studio Add-on, so "Standalone Template" may be the best approach.Oleg