将 T4MVC 与构建脚本一起使用 [英] Using T4MVC with build script

查看:29
本文介绍了将 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.

我试过了:

有没有人成功找到工作的解决方案?

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 与构建脚本一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆