Hi,
Im trying out 7.4 for the first time and Im getting a Compilation Error when I build from VS.
Ive only just setup the project through Nuget and created a Master template and a child Home Doc & Template.
It was working and I was getting a website showing, until after I run a build in VS I got the following YSOD.
Compiler Error Message: CS0234: The type or namespace name 'Home' does not exist in the namespace 'Umbraco.Web.PublishedContentModels' (are you missing an assembly reference?)
Source Error:
public class PageViewsHomecshtml : Umbraco.Web.Mvc.UmbracoTemplatePage
7.4.2 + Visual Studio build error
Hi, Im trying out 7.4 for the first time and Im getting a Compilation Error when I build from VS.
Ive only just setup the project through Nuget and created a Master template and a child Home Doc & Template.
It was working and I was getting a website showing, until after I run a build in VS I got the following YSOD.
Compiler Error Message: CS0234: The type or namespace name 'Home' does not exist in the namespace 'Umbraco.Web.PublishedContentModels' (are you missing an assembly reference?)
Source Error: public class PageViewsHomecshtml : Umbraco.Web.Mvc.UmbracoTemplatePage
Any ideas would be grateful.
Martin
Sorry, this is a templating issue.
Is there a reason why the default worked for a while and then broke when I build from VS.
This is the default ~@inherits when I create the doc & template. @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@using ContentModels = Umbraco.Web.PublishedContentModels;
Ive changed it back to the previous @inherits method and it works ok.
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
is working on a reply...