T4 reports Compiling transformation: Invalid token 'this' in class, struct

后端 未结 3 1600
时光取名叫无心
时光取名叫无心 2021-02-18 16:45

Attempting to run the T4 templates for Immutable Object Graph gives errors of

╔═══════╦═══╦═════════════════════════════════════════════════════════════════════         


        
3条回答
  •  面向向阳花
    2021-02-18 17:20

    For me, the trailing newline at the end of the file was not a problem, but having Unix line endings (\n) instead of Windows line endings (\r\n) broke the T4 engine.

    Very frustrating to debug when you have two files that look identical but one of them won't compile!

提交回复
热议问题