Copied to clipboard

Flag this post as spam?

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


  • Martin 278 posts 662 karma points
    Apr 11, 2016 @ 07:36
    Martin
    0

    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

  • Martin 278 posts 662 karma points
    Apr 11, 2016 @ 08:01
    Martin
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft