T4 for Sharp Architecture/Northwind Problem

前端 未结 2 1021
旧巷少年郎
旧巷少年郎 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:47

    I have received this using other T4 templates. The problem ends up being spaces at the end of the file (following the very last '#>' ).

    Open your .tt file in VS, CTRL+END, make sure all spaces are removed following the last #>

     string someMethod()
     {
         //some code
        return "someValue";
     }
     #>
    

    Props go to a post by Cheverton: http://social.msdn.microsoft.com/Forums/en-SG/vsx/thread/cd1217c1-39b0-4799-86a2-2449e21a8544

提交回复
热议问题