开发者

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

开发者 https://www.devze.com 2022-12-19 08:03 出处:网络
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 i

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

精彩评论

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