将 T4MVC 与构建脚本一起使用

编程入门 行业动态 更新时间:2024-10-12 01:25:47
本文介绍了将 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 与构建脚本一起使用

本文发布于:2023-11-17 09:11:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1609574.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:脚本   T4MVC

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!