开发者

T4 templates don't work for me in my Visual studio 2008 solution

I download the latest version of Subsonic(3.0.0.3) but when I add the T4 templates in my solution in Visual studio 2008 SP1, the auto-generation don't work. If I right click on the template files also the "Run custom tools" is not present. What I have to do to make visual studio able to generate code from开发者_开发问答 T4 templates?


Check what type of project you are using.

T4 Templates don't run in "Web Site" projects (as opposed to "Web application" projects). If you're using a web site project, you must add a Code project as well, put your templates in there and reference that project in your website.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜