T4 for Sharp Architecture/Northwind Problem

前端 未结 2 1024
旧巷少年郎
旧巷少年郎 2021-01-04 17:11

I have just downloaded sharparchitecture/Northwind and i\'m trying to get crud scaffolding to work. I have changed nothing except adding missing reference to this class libr

2条回答
  •  别那么骄傲
    2021-01-04 17:57

    I realize this is an old question, but I had the same problem just now, and in my case it turns out it was the line endings. They were LF, but needed to be CRLF.

    After I made some edits to the .tt file, closed the editor, and opened it again, I had both LF and CRLF line endings in the same file, at which point Visual Studio offered to fix this for me. Once I had consistent CRLF line endings in the .tt file, it worked.

提交回复
热议问题