I would like to generate C# code for silverlight but I dont have access to some dll's that would make my T4 code more powerful. Is there anyway to have my T4 template in a C# Class Library and have it generate a file in the Silverlight Class Library开发者_高级运维?
You can use T4 Toolbox for this, here is how. I remember this topic coming up a few months ago on the T4 Toolbox forum on CodePlex; someone used this approach successfully specifically with a silverlight project.
Oleg
You can run TextTransform.exe and pass it a template file that would generate Silverlight class with no problem.
精彩评论