文章出處

如:我用的網上的生成多文件的一個include文件。
生成多文件時,默認會生成一個以自己名字命名的文件如:

有一個demo.tt文件,生成時會出來一個demo.cs文件(默認情況下)


解決方法: Found a trick
/hack! <#@ output extension="/" #> or <#@ output extension="\\" #> Visual Studio 2012 neither outputs the default file, nor complains about its inability too much. P.S. I've tried it with T4MultiFile NuGet package, but it should work with T4Toolbox too, I think.

 


文章列表


不含病毒。www.avast.com
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 大師兄 的頭像
    大師兄

    IT工程師數位筆記本

    大師兄 發表在 痞客邦 留言(0) 人氣()