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

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

我尝试过:

  • 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 ?

推荐答案

我认为您将无法完成这项工作. T4MVC严重依赖于DTE对象模型,并且在外部不可用VS.

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天全站免登陆