Using T4MVC with build script

懵懂的女人 提交于 2019-11-27 19:04:08

问题


Has anyone gotten T4MVC to run as part of a build script ? Preferably a NAnt build script.

I'd like to not have to check in the generated files and just have the build server create them as part of the build, but T4MVC will only run inside of Visual Studio.

I've tried:

  • http://devtalk.dk/2010/03/11/How+To+Run+T4MVC+On+Build.aspx
  • http://otac0n.com/blog/2010/12/23/Pain-Free-T4MVC.aspx

Has anyone successfully gotten a solution to work ?


回答1:


I don't think you'll be able to make this work. T4MVC relies heavily on the DTE object model, and that simply is not available outside of VS.



来源:https://stackoverflow.com/questions/5372067/using-t4mvc-with-build-script

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