Dug into this a bit more. T4MVC expects your views to be a corresponding controller named ~/Views/*ControllerName* directory before it will be included in the transform.
If you don't care about the current template then just create the sub-directory so the controller views gets included in the transform and return a ViewResult from your Controller action method, e.g.
[HttpGet] public virtual ActionResult Index() { var model = new MyModel() return View(Views.Index, model); }
T4MVC
Hi All,
I am using T4MVC (http://t4mvc.codeplex.com/)
It works well, but it generates only partial views. See a screenshot http://joxi.ru/dBoyVIwyTJDEApHutAs
Looks like it works only with views wich are in folders.
May anyone know how to fix it?
Thank you, Oleg
Hi Oleg,
Did you find a solution to this as I'm experiening the same problem?
Thanks,
Si
Dug into this a bit more. T4MVC expects your views to be a corresponding controller named ~/Views/*ControllerName* directory before it will be included in the transform.
If you don't care about the current template then just create the sub-directory so the controller views gets included in the transform and return a ViewResult from your Controller action method, e.g.
[HttpGet]
public virtual ActionResult Index()
{
var model = new MyModel()
return View(Views.Index, model);
}
is working on a reply...