Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Vasia Vasia 49 posts 241 karma points
    Oct 06, 2014 @ 06:36
    Vasia Vasia
    0

    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

  • Si Burgess 15 posts 56 karma points
    Nov 05, 2014 @ 10:37
    Si Burgess
    0

    Hi Oleg,

    Did you find a solution to this as I'm experiening the same problem?

    Thanks,
    Si 

  • Si Burgess 15 posts 56 karma points
    Nov 05, 2014 @ 11:45
    Si Burgess
    0

    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);
    }

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies