T4 Template is Generating Extra New Lines on Some PCs

微笑、不失礼 提交于 2019-12-03 23:54:57
Thomas927

What @ralf.w. was getting at was the solution to this problem. The line endings in the .tt files on the problem computer were LF and this causes extra line endings to be generated when the transformation tool runs. The correct line endings should be CR LF. Once we changed the line endings in the .tt files, the output files were generated properly. I also changed the line ending settings in Git to checkout as-is, commit as-is. This question has some information on what the line ending settings mean and where they can be changed.

Notepad++ was used to convert the problem .tt files to CR LF (we didn't have that many.) Go to EditEOL ConversionWindows (CR LF)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!