开发者

How can you get T4 to skip transforming for custom methods?

Is there any attribute or other method of getting T4 to skip trying to transform custom methods?

Where it shows a warning saying T4MVC.tt doesn't support MyController.Method because it doesn't return a supported ActionResult type?

For example:

On a BaseController having this method:

public UrlHelper GetUrlHelp开发者_Python百科er()
{
    return new UrlHelper(this.ControllerContext.RequestContext);
}


Ah yes, I assume you're the one who asked during the MvcConf talk :)

I think we should just change T4MVC to just get rid of this warning, which probably does more harm than good. Can you try getting rid of it in t4mvc.tt? Should be around line 776 in the latest build.

I can just make that change and it will go in the next drop (2.6.22), but please let me know if that works well for you. Thanks!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜