Content Type in Template is unknown for VS2026

I’m trying to understand Umbraco, but I’m very stuck on an issue in Visual Studio 2026.

I have created a simple Content Type called Homepage, that has an corresponding Template.

@using Umbraco.Cms.Web.Common.PublishedModels;
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<Homepage>
@{
	Layout = null;
}

<h1>@Model.Info</h1>

Then I have created some Content, that shows this template and adds some Content for the Info property. Lastly I checked the ‘Allow at Root’ for the Content Type.

After publishing the content, the site runs fine, and shows the content as expected.

My trouble is, that If I try to edit the Template (.cshtml) in VS 2026, it tells me that it cannot find the Homepage model - even when the Template and Content works just fine. it also means that Intellisense isn’t working.

As far as I know, I’ve been following the steps in this YT video from Umbraco:
Create a Simple Umbraco Website

What kind of ‘magic step’ did I miss?

Hi,
It is most likely modelsbuilder mode related, check out the docs Here