问题描述
异步行动AsyncControllers(在MVC2)有两个动作方法(ActionNameAsync和ActionNameCompleted),这似乎混淆T4MVC。
Async actions in AsyncControllers (in MVC2) have two action methods (ActionNameAsync and ActionNameCompleted) which seem to confuse T4MVC.
如果它不能与T4MVC做,有没有办法从尝试包括这些方法禁用它?
If it can't be done with T4MVC, is there a way to disable it from trying to include these methods?
推荐答案
事实上,异步控制器目前不与T4MVC工作。这里是一个线程讨论这个问题:
Indeed, async controllers don't currently work with T4MVC. Here was a thread discussing it: http://forums.asp.net/t/1534619.aspx
这是造成东西打破你呢,还是仅仅是T4MVC不适用于这些方法,但一切工作正常?
Is this causing something to break for you, or is it simply that T4MVC is not available for those methods, but everything else works fine?
这篇关于AsyncController在MVC2和T4MVC:他们能一起工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!