开发者

Is there any way to control where the output file of a T4 is generated to?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜