The type or namespace name 'RenderModel' could not be found (are you missing a using directive or reference?)
Hi all,
I'm using Umbraco 8.0.1 and im trying to do the normal MVC pattern i usually do on version 7...
I have a controller (see below) and im when trying to add the directive like i normally do (hover over and add it) its not finding anything for RenderModel...
Any ideas where im going wrong?
using System;
using System.Web.Mvc;
using Umbraco.Core.Logging;
using Umbraco.Core.Models.PublishedContent;
using Umbraco.Web.Models;
using Umbraco.Web.Mvc;
namespace umbraco8.Controllers
{
public class HomeController : RenderMvcController
{
public override ActionResult Index(RenderModel model)
{
return base.Index(model);
}
}
}
I'm pretty sure i need to reference umbraco.dll or i think that was the case in version 7, but not overall sure here!
I have the following Umbraco references in my project:
Umbraco.Core
Umbraco.Examine
Umbraco.ModelsBuider
Umbraco.Web
Umbraco.Web.PublishedContentModels (im using model builder dll mode to a custom project)
Umbraco.Web.UI
The type or namespace name 'RenderModel' could not be found (are you missing a using directive or reference?)
Hi all,
I'm using Umbraco 8.0.1 and im trying to do the normal MVC pattern i usually do on version 7...
I have a controller (see below) and im when trying to add the directive like i normally do (hover over and add it) its not finding anything for RenderModel...
Any ideas where im going wrong?
Any pointers would be great!
Lewis
I'm pretty sure i need to reference umbraco.dll or i think that was the case in version 7, but not overall sure here!
I have the following Umbraco references in my project:
RenderModel has been replaced by ContentModel in V8
Try that instead
The rest is same as V7
Regards
Marc
Thanks Marc! Worked a treat!
Thanks Marc . Great !!
is working on a reply...