本文介绍了将 T4MVC 与构建脚本一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有人让 T4MVC 作为构建脚本的一部分运行?最好是 NAnt 构建脚本.
Has anyone gotten T4MVC to run as part of a build script ? Preferably a NAnt build script.
我不想签入生成的文件,只需让构建服务器将它们创建为构建的一部分,但 T4MVC 只能在 Visual Studio 内运行.
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.
我试过了:
- devtalk.dk/2010/03/11/How+To+Run+T4MVC+On+Build.aspx
- otac0n/blog/2010/12/23/Pain-Free-T4MVC.aspx
有没有人成功找到工作的解决方案?
Has anyone successfully gotten a solution to work ?
推荐答案我认为您无法完成这项工作.T4MVC 严重依赖 DTE 对象模型,并且 在外部根本不可用对比.
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.
更多推荐
将 T4MVC 与构建脚本一起使用
发布评论