We're using Kentico 11.0.26 with MVC.
We have a page type called Header. It has several custom fields and everything has been pulling over on MVC side just fine. Today I needed to add couple of new fields. After adding the fields, I copied the generated code for Header.cs and HeaderProvider.cs into MVC solution in Visual Studio.
The solution won't compile now.
The 2 new fields are available in the Header.Fields property, but 4 old fields are not available. Remaining old fields are available.
HeaderLogo is one of those 4 fields that are no longer available in Intellisense:
On this line: string HeaderLogo = header.Fields.HeaderLogo; I get the following compiler error:
Header.HeaderFields' does not contain a definition for 'HeaderLogo' and no extension method 'HeaderLogo' accepting a first argument of type 'Header.HeaderFields' could be found (are you missing a using directive or an assembly reference?)
Header.cs does have the definition for HeaderLogo as well as all other fields.