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

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

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

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


        
3条回答
  •  日久生厌
    2021-02-18 17:07

    Yes, this was something to do with line ending for me too, possible due to source control.

    To resolve, I copied and pasted the template code into Notepad++ and saved as a normal txt file then copy and pasted back.

    (notepad didn't work as the line endings were wrong)

提交回复
热议问题